| Package | Description |
|---|---|
| io.higgs.http.server | |
| io.higgs.http.server.protocol | |
| io.higgs.http.server.protocol.mediaTypeDecoders | |
| io.higgs.http.server.resource | |
| io.higgs.http.server.transformers |
| Modifier and Type | Field and Description |
|---|---|
protected MediaType |
HttpRequest.matchedMediaType |
| Modifier and Type | Field and Description |
|---|---|
protected List<MediaType> |
HttpRequest.acceptedMediaTypes |
protected List<MediaType> |
HttpRequest.contentType |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
HttpRequest.getMatchedMediaType() |
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
HttpRequest.getAcceptedMediaTypes() |
List<MediaType> |
HttpRequest.getContentType() |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpRequest.setMatchedMediaType(MediaType matchedMediaType) |
| Modifier and Type | Method and Description |
|---|---|
LinkedList<MediaType> |
HttpMethod.getConsumesMediaTypes() |
LinkedList<MediaType> |
HttpMethod.getProducesMediaTypes() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
HttpMethod.produces(MediaType... mediaTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MediaTypeDecoder.canDecode(List<MediaType> mediaType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
JsonDecoder.canDecode(List<MediaType> mediaType) |
boolean |
FormUrlEncodedDecoder.canDecode(List<MediaType> mediaType) |
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
MediaType.APPLICATION_ATOM_XML_TYPE
"application/atom+xml"
|
static MediaType |
MediaType.APPLICATION_FORM_URLENCODED_TYPE
"application/x-www-form-urlencoded"
|
static MediaType |
MediaType.APPLICATION_JSON_TYPE
"application/json"
|
static MediaType |
MediaType.APPLICATION_OCTET_STREAM_TYPE
"application/octet-stream"
|
static MediaType |
MediaType.APPLICATION_SVG_XML_TYPE
"application/svg+xml"
|
static MediaType |
MediaType.APPLICATION_XHTML_XML_TYPE
"application/xhtml+xml"
|
static MediaType |
MediaType.APPLICATION_XML_TYPE
"application/xml"
|
static MediaType |
MediaType.MULTIPART_FORM_DATA_TYPE
"multipart/form-data"
|
static MediaType |
MediaType.TEXT_HTML_TYPE
"text/html"
|
static MediaType |
MediaType.TEXT_PLAIN_TYPE
"text/plain"
|
static MediaType |
MediaType.TEXT_XML_TYPE
"text/xml"
|
static MediaType |
MediaType.WILDCARD_TYPE
"*/*"
|
| Modifier and Type | Method and Description |
|---|---|
static LinkedList<MediaType> |
MediaType.valueOf(String mtype)
Creates a new instance of MediaType by parsing the supplied string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MediaType.isCompatible(MediaType other)
Check if this media type is compatible with another media type.
|
| Modifier and Type | Field and Description |
|---|---|
protected Set<MediaType> |
BaseTransformer.supportedTypes |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseTransformer.addSupportedTypes(MediaType... type)
Adds one or more
MediaTypes |
boolean |
ResponseTransformer.canTransform(Object response,
HttpRequest request,
MediaType mediaType,
HttpMethod method,
io.netty.channel.ChannelHandlerContext ctx)
Determines if, given the response object and the media types accepted by the client this
transformer can convert the response object into one of the accepted types
|
boolean |
BaseTransformer.canTransform(Object response,
HttpRequest request,
MediaType mediaType,
HttpMethod method,
io.netty.channel.ChannelHandlerContext ctx) |
void |
ResponseTransformer.transform(Object response,
HttpRequest request,
HttpResponse httpResponse,
MediaType mediaType,
HttpMethod method,
io.netty.channel.ChannelHandlerContext ctx)
Given the response object transform it into one of the accepted media types
|
Copyright © 2012-2015. All Rights Reserved.