|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xmldb.RemoteBinaryResource
Field Summary |
Fields inherited from interface org.xmldb.api.modules.BinaryResource |
RESOURCE_TYPE |
Constructor Summary | |
RemoteBinaryResource(RemoteCollection parent,
XmldbURI documentName)
|
Method Summary | |
java.lang.Object |
getContent()
Retrieves the content from the resource. |
int |
getContentLength()
|
java.util.Date |
getCreationTime()
|
org.w3c.dom.DocumentType |
getDocType()
|
java.lang.String |
getId()
Returns the unique id for this Resource or null if the
Resource is anonymous. |
java.util.Date |
getLastModificationTime()
|
java.lang.String |
getMimeType()
|
Collection |
getParentCollection()
Returns the Collection instance that this resource is
associated with. |
Permission |
getPermissions()
|
java.lang.String |
getResourceType()
Returns the resource type for this Resource. |
void |
setContent(java.lang.Object obj)
Sets the content for this resource. |
void |
setContentLength(int len)
|
void |
setDocType(org.w3c.dom.DocumentType doctype)
|
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
|
void |
setMimeType(java.lang.String mime)
|
void |
setPermissions(Permission perms)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RemoteBinaryResource(RemoteCollection parent, XmldbURI documentName) throws XMLDBException
Method Detail |
public Collection getParentCollection() throws XMLDBException
Resource
Collection
instance that this resource is
associated with. All resources must exist within the context of a
collection
.
getParentCollection
in interface Resource
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.lang.String getId() throws XMLDBException
Resource
Resource
or null if the
Resource
is anonymous. The Resource
will be
anonymous if it is obtained as the result of a query.
getId
in interface Resource
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.lang.String getResourceType() throws XMLDBException
Resource
getResourceType
in interface Resource
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.lang.Object getContent() throws XMLDBException
Resource
getContent
in interface Resource
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public void setContent(java.lang.Object obj) throws XMLDBException
Resource
setContent
in interface Resource
obj
- the content value to set for the resource.
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.util.Date getCreationTime() throws XMLDBException
getCreationTime
in interface EXistResource
XMLDBException
public java.util.Date getLastModificationTime() throws XMLDBException
getLastModificationTime
in interface EXistResource
XMLDBException
public void setPermissions(Permission perms)
public Permission getPermissions()
getPermissions
in interface EXistResource
public void setContentLength(int len)
public int getContentLength() throws XMLDBException
getContentLength
in interface EXistResource
XMLDBException
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
setLexicalHandler
in interface EXistResource
public void setMimeType(java.lang.String mime)
setMimeType
in interface EXistResource
public java.lang.String getMimeType()
getMimeType
in interface EXistResource
public org.w3c.dom.DocumentType getDocType() throws XMLDBException
getDocType
in interface EXistResource
XMLDBException
public void setDocType(org.w3c.dom.DocumentType doctype) throws XMLDBException
setDocType
in interface EXistResource
XMLDBException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |