|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.apache.jackrabbit.server.io.AbstractContext
org.apache.jackrabbit.server.io.ExportContext
This Class implements a export context which is passed to the respective export commands.
Please note, that this export context lacks an explicitDavResource
member. Currently, this
information is not needed in any of the known export commands but leaves this
I/O framework more generic.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
Map.Entry |
Field Summary |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
ExportContext(Node exportRoot)
Creates a new ExportContext for the given node |
|
ExportContext(Properties props,
Node exportRoot)
Creats a new import context with the given root node and property defaults. |
Method Summary | |
ExportContext |
createSubContext(Node node)
Creates a new sub context which bases on this contexts properties |
String |
getContentLanguage()
Returns the content language or null |
long |
getContentLength()
Returns the length of the data to be exported |
String |
getContentType()
Returns the content type of the resource. |
long |
getCreationTime()
Returns the creation time of the resource. |
String |
getETag()
Returns the ETag of the resource. |
InputStream |
getInputStream()
Returns the input stream |
long |
getModificationTime()
Returns the last modification time. |
Node |
getNode()
Returns the node to be exported |
void |
setContentLanguage(String contentLanguage)
Sets the content language. |
void |
setContentLength(long contentLength)
Sets the length of the data to be exported. |
void |
setContentType(String contentType)
Sets the content type of the resource. |
void |
setCreationTime(long creationTime)
Sets the creation time of the resource. |
void |
setETag(String etag)
Sets the ETag of the resource. |
void |
setInputStream(InputStream inputStream)
Sets a the inpurt stream to the data to be exported. |
void |
setModificationTime(long modificationTime)
Sets the last modification time. |
Methods inherited from class org.apache.jackrabbit.server.io.AbstractContext |
enableCommand, enableCommand, getProperty, getProperty, isCommandEnabled |
Methods inherited from class java.util.Properties |
getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
public ExportContext(Node exportRoot)
exportRoot
- public ExportContext(Properties props, Node exportRoot)
props
- exportRoot
- Method Detail |
public ExportContext createSubContext(Node node)
node
-
public InputStream getInputStream()
public void setInputStream(InputStream inputStream)
inputStream
- public Node getNode()
public long getContentLength()
public void setContentLength(long contentLength)
contentLength
- the content lengthpublic long getModificationTime()
public void setModificationTime(long modificationTime)
modificationTime
- the last modification timepublic long getCreationTime()
public void setCreationTime(long creationTime)
creationTime
- the creation timepublic String getContentType()
public void setContentType(String contentType)
contentType
- the content typepublic String getContentLanguage()
null
public void setContentLanguage(String contentLanguage)
contentLanguage
- public String getETag()
public void setETag(String etag)
etag
- the ETag
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |