|
Class Summary |
| ConnegModule |
Bindings for content negotiation defaults. |
| RegexNegotiator |
ContentNegotiator that supports one regex match value, for example
@Accept("(xml|text)/.*") will match any incoming request with an
HTTP Accept header "text/*" and @Referer("(google|yahoo|bing)\\.com") will
match requests with HTTP Referer headers from google, yahoo, or bing |
| WildcardNegotiator |
ContentNegotiator that supports comma separated and wildcard matches in Accept header style
for example, @Accept("text/html, text/plain") will match an incoming request
with HTTP Accept header "text/*" and @Accept("text/*") will match incoming
request with headers "Accept: text/html" or "Accept: text/plain"
Notes:
Wildcard for subtypes such as "text/*, image/*" are supported but there is no
wildcard matching on the main media types. |