|
||||||||||
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.station.ApplianceContentHandler
net.dpml.station.PlanContentHandler
public class PlanContentHandler
Content handler for the plan artifact type.
Constructor Summary | |
---|---|
PlanContentHandler()
|
Method Summary | |
---|---|
Object |
getContent(URLConnection connection)
Returns the content in the form of a Appliance . |
Object |
getContent(URLConnection connection,
Class[] classes)
Returns the content assignable to the first recognized class in the list of suppied classes. |
String |
getType()
Returns the type thar the content handler supports. |
static Appliance |
newAppliance(String key,
URI uri)
|
Appliance |
newAppliance(URLConnection connection,
String partition)
Create a new appliance using the supplied connection object. |
Methods inherited from class net.dpml.station.ApplianceContentHandler |
---|
getApplianceManagers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlanContentHandler()
Method Detail |
---|
public String getType()
getType
in interface ContentManager
getType
in class ApplianceContentHandler
public Object getContent(URLConnection connection) throws IOException
Appliance
.
getContent
in class ApplianceContentHandler
connection
- the url connection
IOException
- if an IO error occurspublic Object getContent(URLConnection connection, Class[] classes) throws IOException
getContent
in class ApplianceContentHandler
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
newAppliance
in class ApplianceContentHandler
connection
- the URL connectionpartition
- an optional partition name
IOException
- if an IO error occurspublic static Appliance newAppliance(String key, URI uri) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |