Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemgetExportRoot()Returns the item to be exportedOutputStreamgetOutputStream()Return the output stream to be used for the export ornullvoidsetContentLanguage(String contentLanguage)Sets the content language.voidsetContentLength(long contentLength)Sets the length of the data.voidsetContentType(String mimeType, String encoding)Set the content type for the resource contentvoidsetCreationTime(long creationTime)Sets the creation time of the resource.voidsetETag(String etag)Sets the ETag of the resource.voidsetModificationTime(long modificationTime)Sets the modification time of the resourcevoidsetProperty(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
-
getOutputStream
OutputStream getOutputStream()
Return the output stream to be used for the export ornull- Returns:
- output stream or
null
-
setContentType
void setContentType(String mimeType, String encoding)
Set the content type for the resource content
-
setContentLanguage
void setContentLanguage(String contentLanguage)
Sets the content language.
-
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 successful export command may set this member.- Parameters:
etag- the ETag
-
-