public class CacheContent extends Object
| Constructor and Description |
|---|
CacheContent()
No argument constructor for the build method.
|
CacheContent(int status,
String charEncoding,
String contentType,
Map<String,List<String>> headers,
InputStream dataInputStream)
Construct
CacheContent using parameters. |
CacheContent(int status,
String charEncoding,
String contentType,
Map<String,List<String>> headers,
InputStream dataInputStream,
HttpCacheServletResponseWrapper.ResponseWriteMethod writeMethod)
Construct
CacheContent using parameters. |
CacheContent(String charEncoding,
String contentType,
Map<String,List<String>> headers,
InputStream dataInputStream)
Construct
CacheContent using parameters. |
CacheContent(String charEncoding,
String contentType,
Map<String,List<String>> headers,
InputStream dataInputStream,
HttpCacheServletResponseWrapper.ResponseWriteMethod writeMethod)
Construct
CacheContent using parameters. |
| Modifier and Type | Method and Description |
|---|---|
CacheContent |
build(HttpCacheServletResponseWrapper responseWrapper)
Deprecated.
Use build(HttpCacheServletResponseWrapper responseWrapper,int status, String charEncoding, String contentType, Map<String, List<String> headers) throws HttpCacheDataStreamException
|
CacheContent |
build(HttpCacheServletResponseWrapper responseWrapper,
int status,
String charEncoding,
String contentType,
Map<String,List<String>> headers)
Construct from the custom servlet response wrapper..
|
String |
getCharEncoding()
Get character encoding.
|
String |
getContentType()
Get content type.
|
Map<String,List<String>> |
getHeaders()
Get headers.
|
InputStream |
getInputDataStream()
Get input stream of response content
|
int |
getStatus()
Get status code.
|
TempSink |
getTempSink()
Get the temp size attached to this cache content.
|
HttpCacheServletResponseWrapper.ResponseWriteMethod |
getWriteMethod() |
public CacheContent(String charEncoding, String contentType, Map<String,List<String>> headers, InputStream dataInputStream)
CacheContent using parameters. Prefer constructing an instance using build
method.charEncoding - contentType - headers - dataInputStream - public CacheContent(String charEncoding, String contentType, Map<String,List<String>> headers, InputStream dataInputStream, HttpCacheServletResponseWrapper.ResponseWriteMethod writeMethod)
CacheContent using parameters. Prefer constructing an instance using build
method.charEncoding - contentType - headers - dataInputStream - writeMethod - public CacheContent(int status,
String charEncoding,
String contentType,
Map<String,List<String>> headers,
InputStream dataInputStream)
CacheContent using parameters. Prefer constructing an instance using build
method.status - charEncoding - contentType - headers - dataInputStream - public CacheContent(int status,
String charEncoding,
String contentType,
Map<String,List<String>> headers,
InputStream dataInputStream,
HttpCacheServletResponseWrapper.ResponseWriteMethod writeMethod)
CacheContent using parameters. Prefer constructing an instance using build
method.status - charEncoding - contentType - headers - dataInputStream - writeMethod - public CacheContent()
@Deprecated public CacheContent build(HttpCacheServletResponseWrapper responseWrapper) throws HttpCacheDataStreamException
responseWrapper - HttpCacheDataStreamExceptionpublic CacheContent build(HttpCacheServletResponseWrapper responseWrapper, int status, String charEncoding, String contentType, Map<String,List<String>> headers) throws HttpCacheDataStreamException
responseWrapper - headers - HttpCacheDataStreamExceptionpublic int getStatus()
public String getCharEncoding()
public String getContentType()
public Map<String,List<String>> getHeaders()
public InputStream getInputDataStream()
public TempSink getTempSink()
public HttpCacheServletResponseWrapper.ResponseWriteMethod getWriteMethod()
Copyright © 2013–2020 Adobe. All rights reserved.