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 Item
getExportRoot()
Returns the item to be exportedOutputStream
getOutputStream()
Return the output stream to be used for the export ornull
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 contentvoid
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 resourcevoid
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
-
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
-
-