public interface ExportContext extends IOContext
ExportContext
...Modifier and Type | Method and Description |
---|---|
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.
|
getIOListener, hasStream, informCompleted, isCompleted
Item getExportRoot()
OutputStream getOutputStream()
null
null
void setContentType(String mimeType, String encoding)
void setContentLanguage(String contentLanguage)
void setContentLength(long contentLength)
contentLength
- the content lengthvoid setCreationTime(long creationTime)
creationTime
- the creation timevoid setModificationTime(long modificationTime)
modificationTime
- the modification timevoid setETag(String etag)
etag
- the ETagCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.