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()
OutputContext
hasStream
in interface OutputContext
public OutputStream getOutputStream()
OutputContext
null
getOutputStream
in interface OutputContext
public void setContentLanguage(String contentLanguage)
OutputContext
setContentLanguage
in interface OutputContext
public void setContentLength(long contentLength)
OutputContext
setContentLength
in interface OutputContext
contentLength
- the content lengthpublic void setContentType(String contentType)
OutputContext
setContentType
in interface OutputContext
public void setModificationTime(long modificationTime)
OutputContext
setModificationTime
in interface OutputContext
modificationTime
- the modification timepublic void setETag(String etag)
OutputContext
setETag
in interface OutputContext
etag
- the ETagpublic void setProperty(String propertyName, String propertyValue)
OutputContext
setProperty
in interface OutputContext
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.