org.apache.cocoon.portal.source
Class CopletSource

java.lang.Object
  extended by org.apache.cocoon.portal.source.CopletSource
All Implemented Interfaces:
Contextualizable, Serviceable, Source, XMLizable

public class CopletSource
extends Object
implements Source, XMLizable, Serviceable, Contextualizable

This is the source implementation of the coplet source

Version:
CVS $Id: CopletSource.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler, Volker Schmitt

Field Summary
protected  Context context
           
protected  String copletControllerName
           
protected  CopletInstanceData copletInstanceData
           
protected  ServiceManager manager
           
protected  String scheme
          The used protocol
protected  String uri
           
 
Constructor Summary
CopletSource(String location, String protocol, CopletInstanceData coplet)
           
 
Method Summary
 void contextualize(Context context)
           
 boolean exists()
           
 long getContentLength()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 String getMimeType()
           
 String getScheme()
           
 String getURI()
           
 SourceValidity getValidity()
           
 void refresh()
           
 void service(ServiceManager manager)
           
 void toSAX(ContentHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected ServiceManager manager

context

protected Context context

uri

protected String uri

copletControllerName

protected String copletControllerName

copletInstanceData

protected CopletInstanceData copletInstanceData

scheme

protected String scheme
The used protocol

Constructor Detail

CopletSource

public CopletSource(String location,
                    String protocol,
                    CopletInstanceData coplet)
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

getInputStream

public InputStream getInputStream()
                           throws IOException,
                                  SourceNotFoundException
Specified by:
getInputStream in interface Source
Throws:
IOException
SourceNotFoundException
See Also:
Source.getInputStream()

getURI

public String getURI()
Specified by:
getURI in interface Source
See Also:
Source.getURI()

getValidity

public SourceValidity getValidity()
Specified by:
getValidity in interface Source
See Also:
Source.getValidity()

refresh

public void refresh()
Specified by:
refresh in interface Source
See Also:
Source.refresh()

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface Source
See Also:
Source.getMimeType()

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface Source
See Also:
Source.getContentLength()

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface Source
See Also:
Source.getLastModified()

toSAX

public void toSAX(ContentHandler handler)
           throws SAXException
Specified by:
toSAX in interface XMLizable
Throws:
SAXException
See Also:
XMLizable.toSAX(ContentHandler)

exists

public boolean exists()
Specified by:
exists in interface Source
See Also:
Source.exists()

getScheme

public String getScheme()
Specified by:
getScheme in interface Source
See Also:
Source.getScheme()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.