|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.descriptors.services.castor.WebAppDescriptorServiceImpl
public class WebAppDescriptorServiceImpl
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 | |
---|---|
protected static boolean |
USING_JAXP
Whether or not Castor should use JAXP. |
static java.lang.String |
WEB_XML_MAPPING
|
Constructor Summary | |
---|---|
WebAppDescriptorServiceImpl()
|
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. |
WebAppDD |
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(WebAppDD webApp,
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 WEB_XML_MAPPING
protected static boolean USING_JAXP
org.exolab.castor.parser
.
Constructor Detail |
---|
public WebAppDescriptorServiceImpl()
Method Detail |
---|
public WebAppDD read(java.io.InputStream in) throws java.io.IOException
read
in interface WebAppDescriptorService
java.io.IOException
public void write(WebAppDD webApp, java.io.OutputStream out) throws java.io.IOException
write
in interface WebAppDescriptorService
webApp
- out
- output stream to which the descriptor should be written
java.io.IOException
protected 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.MappingException
protected void setCastorMarshallerOptions(org.exolab.castor.xml.Marshaller marshaller, java.lang.Object beingMarshalled)
marshaller
- the Castor MarshallerbeingMarshalled
- the Object being marshalled by Castor.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 boolean getIgnoreExtraElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |