|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pluto.descriptors.services.impl.AbstractCastorDescriptorService
org.apache.pluto.descriptors.services.impl.AbstractPortletAppDescriptorService
public abstract class AbstractPortletAppDescriptorService
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 | |
|---|---|
private boolean |
create
Flag to determine if an empty deployment descriptor should be created (in memory) if the actual descriptor does not exist. |
static java.lang.String |
PORTLET_XML_MAPPING
|
| Constructor Summary | |
|---|---|
protected |
AbstractPortletAppDescriptorService(java.lang.String contextPath)
Default Constructor. |
protected |
AbstractPortletAppDescriptorService(java.lang.String contextPath,
boolean create)
Secondary Constructor. |
| Method Summary | |
|---|---|
private void |
dump(java.net.URL url)
|
protected 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. |
PortletAppDD |
read()
Read the Web Application Deployment Descriptor. |
void |
write(PortletAppDD portlet)
Write the deployment descriptor. |
| Methods inherited from class org.apache.pluto.descriptors.services.impl.AbstractCastorDescriptorService |
|---|
getContextPath, getInputStream, getOutputStream, readInternal, writeInternal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.pluto.descriptors.services.PortletAppDescriptorService |
|---|
getContextPath |
| Field Detail |
|---|
public static final java.lang.String PORTLET_XML_MAPPING
private boolean create
| Constructor Detail |
|---|
protected AbstractPortletAppDescriptorService(java.lang.String contextPath)
protected AbstractPortletAppDescriptorService(java.lang.String contextPath,
boolean create)
create - | Method Detail |
|---|
public PortletAppDD read()
throws java.io.IOException
read in interface PortletAppDescriptorServicejava.io.IOException
public void write(PortletAppDD portlet)
throws java.io.IOException
write in interface PortletAppDescriptorServiceportlet -
java.io.IOExceptionprotected java.lang.String getPublicId()
getPublicId in class AbstractCastorDescriptorServiceprotected java.lang.String getDTDUri()
getDTDUri in class AbstractCastorDescriptorService
protected Mapping getCastorMapping()
throws java.io.IOException,
MappingException
getCastorMapping in class AbstractCastorDescriptorServicejava.io.IOException
org.exolab.castor.mapping.MappingException
MappingExceptionprotected boolean getIgnoreExtraElements()
getIgnoreExtraElements in class AbstractCastorDescriptorServiceprivate void dump(java.net.URL url)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||