|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pluto.descriptors.services.castor.AbstractCastorDescriptorService
org.apache.pluto.descriptors.services.castor.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 java.lang.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 java.lang.String |
getDTDUri()
Retrieve the Web Application Deployment descriptor's DTD uri. |
protected boolean |
getIgnoreExtraElements()
|
protected java.lang.String |
getPublicId()
Retrieve the Web Application Deployment descriptor's public Id. |
org.apache.pluto.descriptors.portlet.PortletAppDD |
read(java.io.InputStream in)
Read the Web Application Deployment Descriptor. |
protected java.lang.Object |
readInternal(java.io.InputStream is)
Read the and convert the descriptor into it's Object graph. |
protected void |
setCastorMarshallerOptions(org.exolab.castor.xml.Marshaller marshaller,
java.lang.Object beingMarshalled)
Subclasses should override this method if they need to set options on the Castor marshaller, such as a doctype. |
void |
write(org.apache.pluto.descriptors.portlet.PortletAppDD portlet,
java.io.OutputStream out)
Write the deployment descriptor. |
protected void |
writeInternal(java.lang.Object object,
java.io.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 java.lang.String PORTLET_XML_MAPPING
protected static boolean USING_JAXP
org.exolab.castor.parser.
| Constructor Detail |
public PortletAppDescriptorServiceImpl()
| Method Detail |
public org.apache.pluto.descriptors.portlet.PortletAppDD read(java.io.InputStream in)
throws java.io.IOException
read in interface org.apache.pluto.descriptors.services.PortletAppDescriptorServicejava.io.IOException
public void write(org.apache.pluto.descriptors.portlet.PortletAppDD portlet,
java.io.OutputStream out)
throws java.io.IOException
write in interface org.apache.pluto.descriptors.services.PortletAppDescriptorServiceportlet -
java.io.IOExceptionprotected java.lang.String getPublicId()
protected java.lang.String getDTDUri()
protected org.exolab.castor.mapping.Mapping getCastorMapping()
throws java.io.IOException,
org.exolab.castor.mapping.MappingException
java.io.IOException
org.exolab.castor.mapping.MappingExceptionprotected boolean getIgnoreExtraElements()
protected java.lang.Object readInternal(java.io.InputStream is)
throws java.io.IOException
java.io.IOException
protected void writeInternal(java.lang.Object object,
java.io.OutputStream out)
throws java.io.IOException
object -
java.io.IOException
protected void setCastorMarshallerOptions(org.exolab.castor.xml.Marshaller marshaller,
java.lang.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 | |||||||||