public class OutputContextImpl extends java.lang.Object implements OutputContext
OutputContextImpl
...Constructor and Description |
---|
OutputContextImpl(HttpServletResponse response,
java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
java.io.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(java.lang.String contentLanguage)
Sets the content language.
|
void |
setContentLength(long contentLength)
Sets the length of the data.
|
void |
setContentType(java.lang.String contentType)
Set the content type for the resource content
|
void |
setETag(java.lang.String etag)
Sets the ETag of the resource.
|
void |
setModificationTime(long modificationTime)
Sets the modification time of the resource
|
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Allows to set additional properties that are not covered by an extra setter
method.
|
public OutputContextImpl(HttpServletResponse response, java.io.OutputStream out)
public boolean hasStream()
OutputContext
hasStream
in interface OutputContext
public java.io.OutputStream getOutputStream()
OutputContext
null
getOutputStream
in interface OutputContext
public void setContentLanguage(java.lang.String contentLanguage)
OutputContext
setContentLanguage
in interface OutputContext
public void setContentLength(long contentLength)
OutputContext
setContentLength
in interface OutputContext
contentLength
- the content lengthpublic void setContentType(java.lang.String contentType)
OutputContext
setContentType
in interface OutputContext
public void setModificationTime(long modificationTime)
OutputContext
setModificationTime
in interface OutputContext
modificationTime
- the modification timepublic void setETag(java.lang.String etag)
OutputContext
setETag
in interface OutputContext
etag
- the ETagpublic void setProperty(java.lang.String propertyName, java.lang.String propertyValue)
OutputContext
setProperty
in interface OutputContext
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"