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