|
||||||||||
| 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 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 occurs| Method Detail |
|---|
public static StrategyHandler getStrategyHandler(Component annotation)
throws Exception
annotation - the component annotation
Exception - if an error ocurrs during handler establishment
public static StrategyHandler getStrategyHandler(Class<?> subject)
throws Exception
subject - the subject class
Exception - if a general loading error occurs
public static StrategyHandler getStrategyHandler(Element element)
throws Exception
element - the strategy element
Exception - if loading error occurspublic String getType()
getType in interface ContentManagergetType in class ContentHandler
public Object getContent(URLConnection connection)
throws IOException
Strategy datatype.
getContent in class ContentHandlerconnection - the url connection
IOException - if an IO error occurs
public Object getContent(URLConnection connection,
Class[] classes)
throws IOException
getContent in class ContentHandlerconnection - the url connectionclasses - the selection class array
IOException - if an IO error occurs
public Appliance newAppliance(URLConnection connection,
String partition)
throws IOException
newAppliance in interface ApplianceFactoryconnection - 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 | |||||||||