| org.araneaframework.framework.core.BaseFilterService org.araneaframework.http.filter.StandardHttpResponseFilterService
StandardHttpResponseFilterService | public class StandardHttpResponseFilterService extends BaseFilterService (Code) | | A filter which sets all the necessary headers of the response.
author: Jevgeni Kabanov (ekabanov at araneaframework dot org) |
Method Summary | |
protected void | action(Path path, InputData input, OutputData output) | public void | setCacheHoldingTime(long cacheHoldingTime) Sets the cache-control's max-age parameter, value is in milliseconds. | public void | setCacheable(boolean cacheable) Sets if the response is cacheable or not. | public void | setContentType(String contentType) Sets the content type of the response. | public void | setCookies(Map cookies) Constructs cookies from the key, value pair in the map of the cookies and sets them. | public void | setHeaders(Map headers) Sets the headers of the response from the map headers. |
setCacheHoldingTime | public void setCacheHoldingTime(long cacheHoldingTime)(Code) | | Sets the cache-control's max-age parameter, value is in milliseconds.
|
setCacheable | public void setCacheable(boolean cacheable)(Code) | | Sets if the response is cacheable or not. By default it is not cacheable.
|
setContentType | public void setContentType(String contentType)(Code) | | Sets the content type of the response. This is a required field of the response.
|
setCookies | public void setCookies(Map cookies)(Code) | | Constructs cookies from the key, value pair in the map of the cookies and sets them.
Parameters: cookies - |
setHeaders | public void setHeaders(Map headers)(Code) | | Sets the headers of the response from the map headers. The key of the map is the name of
the header and the value is the corresponding value.
|
Fields inherited from org.araneaframework.framework.core.BaseFilterService | protected Service childService(Code)(Java Doc)
|
|
|