public interface OutputContext
OutputContext
...Modifier and Type | Method and Description |
---|---|
OutputStream |
getOutputStream()
Return the output stream to be used for the export or
null |
boolean |
hasStream()
Return true if the given export context can provide an output stream
|
void |
setContentLanguage(String contentLanguage)
Sets the content language.
|
void |
setContentLength(long contentLength)
Sets the length of the data.
|
void |
setContentType(String contentType)
Set the content type for the resource content
|
void |
setETag(String etag)
Sets the ETag of the resource.
|
void |
setModificationTime(long modificationTime)
Sets the modification time of the resource
|
void |
setProperty(String propertyName,
String propertyValue)
Allows to set additional properties that are not covered by an extra setter
method.
|
boolean hasStream()
OutputStream getOutputStream()
null
void setContentLanguage(String contentLanguage)
contentLanguage
- void setContentLength(long contentLength)
contentLength
- the content lengthvoid setContentType(String contentType)
contentType
- void setModificationTime(long modificationTime)
modificationTime
- the modification timevoid setETag(String etag)
etag
- the ETagCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.