public class OutputContextImpl extends Object implements OutputContext
OutputContextImpl...| Constructor and Description |
|---|
OutputContextImpl(javax.servlet.http.HttpServletResponse response,
OutputStream out) |
| 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.
|
public OutputContextImpl(javax.servlet.http.HttpServletResponse response,
OutputStream out)
public boolean hasStream()
OutputContexthasStream in interface OutputContextpublic OutputStream getOutputStream()
OutputContextnullgetOutputStream in interface OutputContextpublic void setContentLanguage(String contentLanguage)
OutputContextsetContentLanguage in interface OutputContextpublic void setContentLength(long contentLength)
OutputContextsetContentLength in interface OutputContextcontentLength - the content lengthpublic void setContentType(String contentType)
OutputContextsetContentType in interface OutputContextpublic void setModificationTime(long modificationTime)
OutputContextsetModificationTime in interface OutputContextmodificationTime - the modification timepublic void setETag(String etag)
OutputContextsetETag in interface OutputContextetag - the ETagpublic void setProperty(String propertyName, String propertyValue)
OutputContextsetProperty in interface OutputContextCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.