- All Known Subinterfaces:
ErrorWebRoute<A>
,WebRoute<A>
,WebSocketRoute<A>
public interface AcceptAware
Specifies criteria required to match requests or resources based on accepted media ranges or language ranges.
- Since:
- 1.3
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionReturns a language tag or a language range as defined RFC 7231 Section 5.3.5.Returns a media type or a media range as defined by RFC 7231 Section 3.1.1.5 and RFC 7231 Section 5.3.2
-
Method Details
-
getProduce
String getProduce()Returns a media type or a media range as defined by RFC 7231 Section 3.1.1.5 and RFC 7231 Section 5.3.2
- Returns:
- a media type, a media range or null
-
getLanguage
String getLanguage()Returns a language tag or a language range as defined RFC 7231 Section 5.3.5.
- Returns:
- a language tag, a language range or null
-