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)
ContainerResponseFilterAn implementation may modify the state of the response or return a new instance.
filter in interface ContainerResponseFilterrequest - the request.response - the response.Copyright © 2016 Oracle Corporation. All rights reserved.