Module io.inverno.mod.http.base
Package io.inverno.mod.http.base.router
Interface AcceptContentRoute<A>
- Type Parameters:
A
- the resource type
- All Superinterfaces:
Route<A>
An accept content route.
This is used to define route based on the content accepted by an input. For instance, in order to resolve a handler for an HTTP request with accept: application/json
header, an accept
content route must be defined with media type application/json
targeting the handler producing application/json
content.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
AcceptContentRoute.Extractor<A,
B extends AcceptContentRoute<A>, C extends AcceptContentRoute.Extractor<A, B, C>> An accept content route extractor.static interface
AcceptContentRoute.Manager<A,
B, C extends AcceptContentRoute<A>, D extends AcceptContentRoute.Manager<A, B, C, D, E>, E extends Router<A, B, C, D, E>> An accept content route manager. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
getAccept
String getAccept()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
-