|
||||||||||
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 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 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. |
WebAppDD |
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(WebAppDD webApp,
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 WEB_XML_MAPPING
protected static boolean USING_JAXP
org.exolab.castor.parser
.
Constructor Detail |
---|
public WebAppDescriptorServiceImpl()
Method Detail |
---|
public WebAppDD read(InputStream in) throws IOException
read
in interface WebAppDescriptorService
IOException
public void write(WebAppDD webApp, OutputStream out) throws IOException
write
in interface WebAppDescriptorService
webApp
- out
- output stream to which the descriptor should be written
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 void setCastorMarshallerOptions(org.exolab.castor.xml.Marshaller marshaller, Object beingMarshalled)
marshaller
- the Castor MarshallerbeingMarshalled
- the Object being marshalled by Castor.protected Object readInternal(InputStream is) throws IOException
IOException
protected void writeInternal(Object object, OutputStream out) throws IOException
object
-
IOException
protected boolean getIgnoreExtraElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |