|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.ContentHandler
net.dpml.transit.ContentHandler
net.dpml.lang.PartContentHandler
public final class PartContentHandler
Content handler for the 'part' artifact type.
Field Summary | |
---|---|
static java.lang.String |
NAMESPACE
Part XSD uri. |
Constructor Summary | |
---|---|
PartContentHandler()
Creation of a new part content handler. |
Method Summary | |
---|---|
java.lang.Object |
getContent(java.net.URLConnection connection)
Returns the content in the form of a Strategy datatype. |
java.lang.Object |
getContent(java.net.URLConnection connection,
java.lang.Class[] classes)
Returns the content assignable to the first recognized class in the list os supppied classes. |
PartManager[] |
getPartManagers()
Return the part managers handled by the content handler. |
static StrategyHandler |
getStrategyHandler(java.lang.Class<?> subject)
Return the strategy handler supporting the supplied class. |
static StrategyHandler |
getStrategyHandler(Component annotation)
Return a strategy handler based on the supplied component annotation. |
static StrategyHandler |
getStrategyHandler(org.w3c.dom.Element element)
Load a potentially foreign strategy handler. |
java.lang.String |
getType()
Returns the type tha the content handler supports. |
Appliance |
newAppliance(java.net.URLConnection connection,
java.lang.String partition)
Create a new appliance using the supplied connection object. |
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 NAMESPACE
Constructor Detail |
---|
public PartContentHandler() throws java.lang.Exception
java.lang.Exception
- if an error occursMethod Detail |
---|
public static StrategyHandler getStrategyHandler(Component annotation) throws java.lang.Exception
annotation
- the component annotation
java.lang.Exception
- if an error ocurrs during handler establishmentpublic static StrategyHandler getStrategyHandler(java.lang.Class<?> subject) throws java.lang.Exception
subject
- the subject class
java.lang.Exception
- if a general loading error occurspublic static StrategyHandler getStrategyHandler(org.w3c.dom.Element element) throws java.lang.Exception
element
- the strategy element
java.lang.Exception
- if loading error occurspublic java.lang.String getType()
getType
in interface ContentManager
getType
in class ContentHandler
public java.lang.Object getContent(java.net.URLConnection connection) throws java.io.IOException
Strategy
datatype.
getContent
in class java.net.ContentHandler
connection
- the url connection
java.io.IOException
- if an IO error occurspublic java.lang.Object getContent(java.net.URLConnection connection, java.lang.Class[] classes) throws java.io.IOException
getContent
in class java.net.ContentHandler
connection
- the url connectionclasses
- the selection class array
java.io.IOException
- if an IO error occurspublic Appliance newAppliance(java.net.URLConnection connection, java.lang.String partition) throws java.io.IOException
newAppliance
in interface ApplianceFactory
connection
- the URL connectionpartition
- an optional partition name
java.io.IOException
- if an IO error occurspublic PartManager[] getPartManagers()
getPartManagers
in interface PartContentManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |