|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.descriptors.services.castor.PortletAppDescriptorServiceImpl
public class PortletAppDescriptorServiceImpl
Abstract Implementation of the Web Application Deployment Descriptor service. Provides default implementation of the service; requiring only that subclasses provide the input streams to/from the actual descriptor.
Field Summary | |
---|---|
static String |
PORTLET_XML_MAPPING
|
protected static boolean |
USING_JAXP
Whether or not Castor should use JAXP. |
Constructor Summary | |
---|---|
PortletAppDescriptorServiceImpl()
|
Method Summary | |
---|---|
protected org.exolab.castor.mapping.Mapping |
getCastorMapping()
Read and Retrieve the Web Application's Castor Mapping resource. |
protected String |
getDTDUri()
Retrieve the Web Application Deployment descriptor's DTD uri. |
protected boolean |
getIgnoreExtraElements()
|
protected String |
getPublicId()
Retrieve the Web Application Deployment descriptor's public Id. |
PortletAppDD |
read(InputStream in)
Read the Web Application Deployment Descriptor. |
protected Object |
readInternal(InputStream is)
Read the and convert the descriptor into it's Object graph. |
protected void |
setCastorMarshallerOptions(org.exolab.castor.xml.Marshaller marshaller,
Object beingMarshalled)
Subclasses should override this method if they need to set options on the Castor marshaller, such as a doctype. |
void |
write(PortletAppDD portlet,
OutputStream out)
Write the deployment descriptor. |
protected void |
writeInternal(Object object,
OutputStream out)
Write the object graph to it's descriptor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PORTLET_XML_MAPPING
protected static boolean USING_JAXP
org.exolab.castor.parser
.
Constructor Detail |
---|
public PortletAppDescriptorServiceImpl()
Method Detail |
---|
public PortletAppDD read(InputStream in) throws IOException
read
in interface PortletAppDescriptorService
IOException
public void write(PortletAppDD portlet, OutputStream out) throws IOException
write
in interface PortletAppDescriptorService
portlet
-
IOException
protected String getPublicId()
protected String getDTDUri()
protected org.exolab.castor.mapping.Mapping getCastorMapping() throws IOException, org.exolab.castor.mapping.MappingException
IOException
org.exolab.castor.mapping.MappingException
protected boolean getIgnoreExtraElements()
protected Object readInternal(InputStream is) throws IOException
IOException
protected void writeInternal(Object object, OutputStream out) throws IOException
object
-
IOException
protected void setCastorMarshallerOptions(org.exolab.castor.xml.Marshaller marshaller, Object beingMarshalled)
marshaller
- the Castor MarshallerbeingMarshalled
- the Object being marshalled by Castor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |