Package com.google.sitebricks.http.negotiate

Interface Summary
ContentNegotiator The strategy for deciding if a Java request handler method, annotated with content negotiation metadata should fire against the given http request.
 

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.
 

Annotation Types Summary
Accept This annotation is used to select request handlers based on request headers provided by clients and can be used to perform HTTP content negotiation.
Negotiation A simple binding annotation to share negotiation services.
 



Copyright © 2014. All rights reserved.