org.apache.jackrabbit.server.io
Class ExportContext

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.apache.jackrabbit.server.io.AbstractContext
                  extended byorg.apache.jackrabbit.server.io.ExportContext
All Implemented Interfaces:
Cloneable, org.apache.commons.chain.Context, Map, Serializable

public class ExportContext
extends AbstractContext

This Class implements a export context which is passed to the respective export commands.

Please note, that this export context lacks an explicit DavResource member. Currently, this information is not needed in any of the known export commands but leaves this I/O framework more generic.

See Also:
Serialized Form

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

ExportContext

public ExportContext(Node exportRoot)
Creates a new ExportContext for the given node

Parameters:
exportRoot -

ExportContext

public ExportContext(Properties props,
                     Node exportRoot)
Creats a new import context with the given root node and property defaults.

Parameters:
props -
exportRoot -
Method Detail

createSubContext

public ExportContext createSubContext(Node node)
Creates a new sub context which bases on this contexts properties

Parameters:
node -
Returns:

getInputStream

public InputStream getInputStream()
Returns the input stream

Returns:
the input stream

setInputStream

public void setInputStream(InputStream inputStream)
Sets a the inpurt stream to the data to be exported. A successfull export command must set this memeber.

Parameters:
inputStream -

getNode

public Node getNode()
Returns the node to be exported

Returns:

getContentLength

public long getContentLength()
Returns the length of the data to be exported

Returns:
the content length

setContentLength

public void setContentLength(long contentLength)
Sets the length of the data to be exported. A successfull export command must set this memeber.

Parameters:
contentLength - the content length

getModificationTime

public long getModificationTime()
Returns the last modification time.

Returns:
the last modification time.

setModificationTime

public void setModificationTime(long modificationTime)
Sets the last modification time. A successfull export command may set this member.

Parameters:
modificationTime - the last modification time

getCreationTime

public long getCreationTime()
Returns the creation time of the resource.

Returns:
the creation time

setCreationTime

public void setCreationTime(long creationTime)
Sets the creation time of the resource. A successfull export command may set this member.

Parameters:
creationTime - the creation time

getContentType

public String getContentType()
Returns the content type of the resource.

Returns:
the content type

setContentType

public void setContentType(String contentType)
Sets the content type of the resource. A successfull export command may set this member.

Parameters:
contentType - the content type

getContentLanguage

public String getContentLanguage()
Returns the content language or null

Returns:
contentLanguage

setContentLanguage

public void setContentLanguage(String contentLanguage)
Sets the content language.

Parameters:
contentLanguage -

getETag

public String getETag()
Returns the ETag of the resource.

Returns:
the ETag

setETag

public void setETag(String etag)
Sets the ETag of the resource. A successfull export command may set this member.

Parameters:
etag - the ETag


Copyright © 2005 . All Rights Reserved.