@Priority(value=3000) public class CacheControlFilter extends Object implements ContainerResponseFilter
Modifier and Type | Field and Description |
---|---|
protected CacheControl |
cacheControl |
Constructor and Description |
---|
CacheControlFilter(CacheControl cacheControl) |
Modifier and Type | Method and Description |
---|---|
void |
filter(ContainerRequestContext requestContext,
ContainerResponseContext responseContext)
Filter method called after a response has been provided for a request
(either by a
request filter or by a
matched resource method. |
protected CacheControl cacheControl
public CacheControlFilter(CacheControl cacheControl)
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException
ContainerResponseFilter
request filter
or by a
matched resource method.
Filters in the filter chain are ordered according to their priority
(see Priority
).
filter
in interface ContainerResponseFilter
requestContext
- request context.responseContext
- response context.IOException
- if an I/O exception occurs.Copyright © 2017 JBoss by Red Hat. All rights reserved.