|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.gdsg.xmldbremote.service.BaseHandler
gov.noaa.gdsg.xmldbremote.service.ServiceHandler
Wrapps Service
objects and creates a lightweight transport object to
represent the actual object.
Constructor Summary | |
ServiceHandler()
Creates a new instance of ServiceHandler |
Method Summary | |
void |
clearNamespaces(ServiceTransport transport)
Wrapper for the Service#clearNamespace method. |
BaseTransport |
createTransportObject(java.lang.Object object)
Creates a ServiceTransport object. |
java.lang.String |
getNamespace(ServiceTransport transport,
java.lang.String prefix)
Wrapper for Service#getNamespace method. |
org.xmldb.api.base.ResourceSet |
query(ServiceTransport transport,
java.lang.String query)
Wrapper for XPathQueryService.query(java.lang.String) method. |
org.xmldb.api.base.ResourceSet |
queryResource(ServiceTransport transport,
java.lang.String id,
java.lang.String query)
Rapper for XPathQueryService.queryResource(java.lang.String, java.lang.String) method. |
void |
removeNamespace(ServiceTransport transport,
java.lang.String prefix)
Wrapper for the Service#removeNamespace method. |
void |
setCollection(ServiceTransport transport,
org.xmldb.api.base.Collection collection)
Wrapper for the {Service#setCollection} method. |
void |
setNamespace(ServiceTransport transport,
java.lang.String prefix,
java.lang.String uri)
Wrapper for the method. |
Methods inherited from class gov.noaa.gdsg.xmldbremote.service.BaseHandler |
getAllStoredObjects, getObjectFromSession, nextId, saveForSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceHandler()
Method Detail |
public BaseTransport createTransportObject(java.lang.Object object) throws org.xmldb.api.base.XMLDBException
createTransportObject
in class BaseHandler
object
- The actual object to create a transport object from.
org.xmldb.api.base.XMLDBException
- If something goes wrong.public void clearNamespaces(ServiceTransport transport) throws org.xmldb.api.base.XMLDBException
Service#clearNamespace
method.
transport
- The transport object which represents the actual object.
org.xmldb.api.base.XMLDBException
- If the wrapped method thows one.public java.lang.String getNamespace(ServiceTransport transport, java.lang.String prefix) throws org.xmldb.api.base.XMLDBException
Service#getNamespace
method.
transport
- The rep of the actual object.prefix
- Passed to the wrapped method.
org.xmldb.api.base.XMLDBException
- If the wrapped method throws one.public org.xmldb.api.base.ResourceSet query(ServiceTransport transport, java.lang.String query) throws org.xmldb.api.base.XMLDBException
XPathQueryService.query(java.lang.String)
method.
transport
- The transport object which represents the actual object.query
- The query to pass to the wrapped method
org.xmldb.api.base.XMLDBException
- If the wrapped method throws one.public org.xmldb.api.base.ResourceSet queryResource(ServiceTransport transport, java.lang.String id, java.lang.String query) throws org.xmldb.api.base.XMLDBException
XPathQueryService.queryResource(java.lang.String, java.lang.String)
method.
id
- Passed to the Wrapped method.query
- Passed to the Wrapped method.transport
- The transport object which represents the actual object.
org.xmldb.api.base.XMLDBException
- If the wrapped method throws one.public void removeNamespace(ServiceTransport transport, java.lang.String prefix) throws org.xmldb.api.base.XMLDBException
Service#removeNamespace
method.
prefix
- Passed to the Wrapped method.transport
- The transport object which represents the actual object.
org.xmldb.api.base.XMLDBException
- If the wrapped method throws one.public void setNamespace(ServiceTransport transport, java.lang.String prefix, java.lang.String uri) throws org.xmldb.api.base.XMLDBException
prefix
- Passed to the Wrapped method.uri
- Passed to the Wrapped method.transport
- The transport object which represents the actual object.
org.xmldb.api.base.XMLDBException
- If the wrapped method throws one.public void setCollection(ServiceTransport transport, org.xmldb.api.base.Collection collection) throws org.xmldb.api.base.XMLDBException
collection
- Passed to the Wrapped method.transport
- The transport object which represents the actual object.
org.xmldb.api.base.XMLDBException
- If the wrapped method throws one.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |