org.apache.jackrabbit.server.io
Interface ExportContext

All Superinterfaces:
IOContext
All Known Subinterfaces:
PropertyExportContext
All Known Implementing Classes:
AbstractExportContext, ExportContextImpl

public interface ExportContext
extends IOContext

ExportContext...


Method Summary
 Item getExportRoot()
          Returns the item to be exported
 OutputStream getOutputStream()
          Return the output stream to be used for the export or null
 void setContentLanguage(String contentLanguage)
          Sets the content language.
 void setContentLength(long contentLength)
          Sets the length of the data.
 void setContentType(String mimeType, String encoding)
          Set the content type for the resource content
 void setCreationTime(long creationTime)
          Sets the creation time of the resource.
 void setETag(String etag)
          Sets the ETag of the resource.
 void setModificationTime(long modificationTime)
          Sets the modification time of the resource
 void setProperty(Object propertyName, Object propertyValue)
          Sets an arbitrary property to this export context.
 
Methods inherited from interface org.apache.jackrabbit.server.io.IOContext
getIOListener, hasStream, informCompleted, isCompleted
 

Method Detail

getExportRoot

Item getExportRoot()
Returns the item to be exported

Returns:

getOutputStream

OutputStream getOutputStream()
Return the output stream to be used for the export or null

Returns:
output stream or null

setContentType

void setContentType(String mimeType,
                    String encoding)
Set the content type for the resource content

Parameters:
mimeType -
encoding -

setContentLanguage

void setContentLanguage(String contentLanguage)
Sets the content language.

Parameters:
contentLanguage -

setContentLength

void setContentLength(long contentLength)
Sets the length of the data.

Parameters:
contentLength - the content length

setCreationTime

void setCreationTime(long creationTime)
Sets the creation time of the resource. A successful properties export may set this member.

Parameters:
creationTime - the creation time

setModificationTime

void setModificationTime(long modificationTime)
Sets the modification time of the resource

Parameters:
modificationTime - the modification time

setETag

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

Parameters:
etag - the ETag

setProperty

void setProperty(Object propertyName,
                 Object propertyValue)
Sets an arbitrary property to this export context.

Parameters:
propertyName -
propertyValue -


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.