public class LinkFilter extends Object implements ContainerResponseFilter
Link
annotated fields in returned response
entities.
When an application is deployed as a Servlet or Filter this filter can be registered using the following initialization parameters:
<init-param> <param-name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name> <param-value>com.sun.jersey.server.linking.LinkFilter</param-value> </init-param>
Link
Constructor and Description |
---|
LinkFilter() |
Modifier and Type | Method and Description |
---|---|
ContainerResponse |
filter(ContainerRequest request,
ContainerResponse response)
Filter the response.
|
public ContainerResponse filter(ContainerRequest request, ContainerResponse response)
ContainerResponseFilter
An implementation may modify the state of the response or return a new instance.
filter
in interface ContainerResponseFilter
request
- the request.response
- the response.Copyright © 2013 Oracle Corporation. All rights reserved.