|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.gdsg.xmldbremote.xmldbClient.XmldbClientResource
public abstract class XmldbClientResource
This uses the Resource Transport object and the stub to create an API compatable with the XML:DB API.
Field Summary | |
---|---|
protected XmldbClientCollection |
parentCollection
Holds the parent collection. |
protected gov.noaa.gdsg.xmldbremote.Resource |
resourceTransport
Holds value of property resourceTransport. |
protected gov.noaa.gdsg.xmldbremote.NmmrdbSoapBindingStub |
stub
Used to make the SOAP calls. |
Constructor Summary | |
---|---|
XmldbClientResource(gov.noaa.gdsg.xmldbremote.Resource resourceTransport,
gov.noaa.gdsg.xmldbremote.NmmrdbSoapBindingStub stub,
XmldbClientCollection parentCollection)
Creates a new instance of XmldbClientResource |
Method Summary | |
---|---|
java.lang.Object |
getContent()
Throws a NOT_IMPLEMENTED exception because we do not know how to support XML objects that are not a generic DOM. |
java.lang.String |
getId()
Returts the ID representing this resource. |
org.xmldb.api.base.Collection |
getParentCollection()
Retrieves the parent collection. |
gov.noaa.gdsg.xmldbremote.Resource |
getResourceTransport()
Getter method for the resrouceTransport object |
abstract java.lang.String |
getResourceType()
Returns the resource type of this resource |
void |
setContent(java.lang.Object obj)
Throws a NOT_IMPLEMENTED exception because we can not deal with unknown objects over SOAP. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected gov.noaa.gdsg.xmldbremote.NmmrdbSoapBindingStub stub
protected gov.noaa.gdsg.xmldbremote.Resource resourceTransport
protected XmldbClientCollection parentCollection
Constructor Detail |
---|
public XmldbClientResource(gov.noaa.gdsg.xmldbremote.Resource resourceTransport, gov.noaa.gdsg.xmldbremote.NmmrdbSoapBindingStub stub, XmldbClientCollection parentCollection)
resourceTransport
- represents a resource transport on the remote machine.stub
- Used to make calls to the serverparentCollection
- The collectoin this resource is associated with.Method Detail |
---|
public gov.noaa.gdsg.xmldbremote.Resource getResourceTransport()
public java.lang.Object getContent() throws org.xmldb.api.base.XMLDBException
XmldbClientResource
to get the content as a Node
.
getContent
in interface org.xmldb.api.base.Resource
org.xmldb.api.base.XMLDBException
- Always with ErrorCodes.NOT_IMPLEMENTEDpublic java.lang.String getId() throws org.xmldb.api.base.XMLDBException
getId
in interface org.xmldb.api.base.Resource
org.xmldb.api.base.XMLDBException
- All exceptions are caught and rethrown as one.public org.xmldb.api.base.Collection getParentCollection() throws org.xmldb.api.base.XMLDBException
getParentCollection
in interface org.xmldb.api.base.Resource
org.xmldb.api.base.XMLDBException
- All exceptions are caught and rethrown as one.public abstract java.lang.String getResourceType() throws org.xmldb.api.base.XMLDBException
getResourceType
in interface org.xmldb.api.base.Resource
org.xmldb.api.base.XMLDBException
- All exceptions are caught and rethrown as one.public void setContent(java.lang.Object obj) throws org.xmldb.api.base.XMLDBException
XmddbClientXMLResource
class to set content as DOM.
setContent
in interface org.xmldb.api.base.Resource
obj
- Ignored.
org.xmldb.api.base.XMLDBException
- always as ErrorCodes.NOT_IMPLEMENTED
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |