org.exist.xmldb
Class AbstractEXistResource

java.lang.Object
  extended by org.exist.xmldb.AbstractEXistResource
All Implemented Interfaces:
EXistResource
Direct Known Subclasses:
LocalBinaryResource, LocalXMLResource

public abstract class AbstractEXistResource
extends Object
implements EXistResource

Abstract base implementation of interface EXistResource.


Constructor Summary
AbstractEXistResource(Subject user, BrokerPool pool, LocalCollection parent, String docId, String mimeType)
          Deprecated. Use the XmldbURI constructor instead
AbstractEXistResource(Subject user, BrokerPool pool, LocalCollection parent, XmldbURI docId, String mimeType)
           
 
Method Summary
abstract  Date getCreationTime()
           
 DocumentType getDocType()
           
abstract  Date getLastModificationTime()
           
 String getMimeType()
           
abstract  Permission getPermissions()
           
 void setDocType(DocumentType doctype)
           
 void setLexicalHandler(LexicalHandler handler)
           
 void setMimeType(String mime)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exist.xmldb.EXistResource
freeResources, getContentLength
 

Constructor Detail

AbstractEXistResource

public AbstractEXistResource(Subject user,
                             BrokerPool pool,
                             LocalCollection parent,
                             XmldbURI docId,
                             String mimeType)

AbstractEXistResource

public AbstractEXistResource(Subject user,
                             BrokerPool pool,
                             LocalCollection parent,
                             String docId,
                             String mimeType)
Deprecated. Use the XmldbURI constructor instead

Parameters:
user -
pool -
parent -
docId -
mimeType -
Method Detail

getCreationTime

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

getLastModificationTime

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

getPermissions

public abstract Permission getPermissions()
                                   throws XMLDBException
Specified by:
getPermissions in interface EXistResource
Throws:
XMLDBException

setLexicalHandler

public void setLexicalHandler(LexicalHandler handler)
Specified by:
setLexicalHandler in interface EXistResource

setMimeType

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

getMimeType

public String getMimeType()
                   throws XMLDBException
Specified by:
getMimeType in interface EXistResource
Throws:
XMLDBException

getDocType

public DocumentType getDocType()
                        throws XMLDBException
Specified by:
getDocType in interface EXistResource
Throws:
XMLDBException

setDocType

public void setDocType(DocumentType doctype)
                throws XMLDBException
Specified by:
setDocType in interface EXistResource
Throws:
XMLDBException


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