org.exist.xmldb
Class AbstractRemoteResource

java.lang.Object
  extended by org.exist.xmldb.AbstractRemoteResource
All Implemented Interfaces:
EXistResource, ExtendedResource, Resource
Direct Known Subclasses:
RemoteBinaryResource, RemoteXMLResource

public abstract class AbstractRemoteResource
extends Object
implements EXistResource, ExtendedResource, Resource


Constructor Summary
AbstractRemoteResource(RemoteCollection parent, XmldbURI documentName)
           
 
Method Summary
 void freeResources()
           
 Object getContent()
           
 void getContentIntoAFile(File localfile)
          It saves the resource to the local file given as input parameter.
 long getContentLength()
           
 Date getCreationTime()
           
 long getExtendedContentLength()
           
 Date getLastModificationTime()
           
 String getMimeType()
           
 Collection getParentCollection()
           
 Permission getPermissions()
           
 void setContentLength(int len)
           
 void setContentLength(long len)
           
 void setMimeType(String mime)
           
 void setPermissions(Permission perms)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exist.xmldb.EXistResource
getDocType, setDocType, setLexicalHandler
 
Methods inherited from interface org.exist.xmldb.ExtendedResource
getContentIntoAStream, getExtendedContent, getStreamContent, getStreamLength
 
Methods inherited from interface org.xmldb.api.base.Resource
getId, getResourceType, setContent
 

Constructor Detail

AbstractRemoteResource

public AbstractRemoteResource(RemoteCollection parent,
                              XmldbURI documentName)
                       throws XMLDBException
Throws:
XMLDBException
Method Detail

freeResources

public void freeResources()
Specified by:
freeResources in interface EXistResource

getContent

public Object getContent()
                  throws XMLDBException
Specified by:
getContent in interface Resource
Throws:
XMLDBException

getContentLength

public long getContentLength()
                      throws XMLDBException
Specified by:
getContentLength in interface EXistResource
Throws:
XMLDBException

getCreationTime

public Date getCreationTime()
                     throws XMLDBException
Specified by:
getCreationTime in interface EXistResource
Throws:
XMLDBException

getExtendedContentLength

public long getExtendedContentLength()
                              throws XMLDBException
Throws:
XMLDBException

getLastModificationTime

public Date getLastModificationTime()
                             throws XMLDBException
Specified by:
getLastModificationTime in interface EXistResource
Throws:
XMLDBException

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface EXistResource

getParentCollection

public Collection getParentCollection()
                               throws XMLDBException
Specified by:
getParentCollection in interface Resource
Throws:
XMLDBException

getPermissions

public Permission getPermissions()
Specified by:
getPermissions in interface EXistResource

setContentLength

public void setContentLength(int len)

setContentLength

public void setContentLength(long len)

setMimeType

public void setMimeType(String mime)
Specified by:
setMimeType in interface EXistResource

setPermissions

public void setPermissions(Permission perms)

getContentIntoAFile

public void getContentIntoAFile(File localfile)
                         throws XMLDBException
Description copied from interface: ExtendedResource
It saves the resource to the local file given as input parameter. Do NOT confuse with set content.

Specified by:
getContentIntoAFile in interface ExtendedResource
Throws:
XMLDBException


Copyright (C) The eXist-db Project. All rights reserved.