@Provider public class ExtensionJerseyFilter extends Object implements com.sun.jersey.spi.container.ContainerRequestFilter
A filter to handle URI with extensions. It will set the correct accept header for each extension and remove the extension from the URI to allow for normal processing of the request.
Currently supported extension and their matching headers are defined in the extension to header mapping.
One can exclude URIs from being processed by this filter. Simply create the filter with a collection of patterns to be excluded.
Example: URI http://localhost:8080/app/rest/my/resource.json would be automatically mapped to URI http://localhost:8080/app/rest/my/resource
with its accept header set to application/json
| Constructor and Description |
|---|
ExtensionJerseyFilter() |
ExtensionJerseyFilter(Collection<String> pathExcludePatterns) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.jersey.spi.container.ContainerRequest |
filter(com.sun.jersey.spi.container.ContainerRequest request) |
public ExtensionJerseyFilter()
public ExtensionJerseyFilter(Collection<String> pathExcludePatterns)
Copyright © 2016 Atlassian. All rights reserved.