| Package | Description |
|---|---|
| com.linecorp.armeria.common |
Common types.
|
| com.linecorp.armeria.common.logging | |
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.docs |
Documentation service.
|
| com.linecorp.armeria.server.encoding |
HTTP content encoding service.
|
| com.linecorp.armeria.server.file |
HTTP static file service.
|
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
MediaType.AAC_AUDIO
Advanced Audio Coding.
|
static MediaType |
MediaType.ANY_APPLICATION_TYPE |
static MediaType |
MediaType.ANY_AUDIO_TYPE |
static MediaType |
MediaType.ANY_IMAGE_TYPE |
static MediaType |
MediaType.ANY_TEXT_TYPE |
static MediaType |
MediaType.ANY_TYPE |
static MediaType |
MediaType.ANY_VIDEO_TYPE |
static MediaType |
MediaType.APPLE_MOBILE_CONFIG
|
static MediaType |
MediaType.APPLE_PASSBOOK
|
static MediaType |
MediaType.APPLICATION_BINARY
This is a non-standard media type, but is commonly used in serving hosted binary files as it is
known not to trigger content sniffing in current browsers.
|
static MediaType |
MediaType.APPLICATION_XML_UTF_8
As described in RFC 3023, this constant
(
application/xml) is used for XML documents that are "unreadable by casual users." |
static MediaType |
MediaType.ATOM_UTF_8 |
static MediaType |
MediaType.BASIC_AUDIO
Basic Audio, as defined by RFC
2046.
|
static MediaType |
MediaType.BMP
Bitmap file format (
bmp
files). |
static MediaType |
MediaType.BZIP2 |
static MediaType |
MediaType.CACHE_MANIFEST_UTF_8 |
static MediaType |
MediaType.CRW
The Canon Image File
Format (
crw files), a widely-used "raw image" format for cameras. |
static MediaType |
MediaType.CSS_UTF_8 |
static MediaType |
MediaType.CSV_UTF_8 |
static MediaType |
MediaType.DART_UTF_8
Files in the dart.
|
static MediaType |
MediaType.EOT
Embedded OpenType fonts.
|
static MediaType |
MediaType.EPUB
As described in the International Digital Publishing Forum
EPUB is the distribution and interchange format standard for digital publications and
documents.
|
static MediaType |
MediaType.EVENT_STREAM
As described in Server-Sent Events, this constant
(
text/event-stream) is used when sending notifications in the form of DOM events from a server. |
static MediaType |
MediaType.FLV_VIDEO
Flash video.
|
static MediaType |
MediaType.FORM_DATA |
static MediaType |
MediaType.GEO_JSON
GeoJSON Format, a geospatial data interchange format
based on JSON.
|
static MediaType |
MediaType.GIF |
static MediaType |
MediaType.GZIP |
static MediaType |
MediaType.HAL_JSON
|
static MediaType |
MediaType.HTML_UTF_8 |
static MediaType |
MediaType.I_CALENDAR_UTF_8 |
static MediaType |
MediaType.ICO |
static MediaType |
MediaType.JAVASCRIPT_UTF_8
RFC 4329 declares this to be the
correct media type for JavaScript, but
text/javascript may be
necessary in certain situations for compatibility. |
static MediaType |
MediaType.JOSE
|
static MediaType |
MediaType.JOSE_JSON
|
static MediaType |
MediaType.JPEG |
static MediaType |
MediaType.JSON |
static MediaType |
MediaType.JSON_PATCH
As described in RFC 6902, this constant
(
application/json-patch+json) is used for expressing a sequence of operations to apply
to a JavaScript Object Notation(JSON) document. |
static MediaType |
MediaType.JSON_SEQ
As described in RFC 7464, this constant
(
application/json-seq) is used for expressing JSON text sequences. |
static MediaType |
MediaType.JSON_UTF_8 |
static MediaType |
MediaType.KEY_ARCHIVE
|
static MediaType |
MediaType.KMZ
OGC KML (Keyhole Markup Language),
compressed using the ZIP format into KMZ archives.
|
static MediaType |
MediaType.L16_AUDIO
L16 audio, as defined by RFC 2586.
|
static MediaType |
MediaType.L24_AUDIO
L24 audio, as defined by RFC 3190.
|
static MediaType |
MediaType.MANIFEST_JSON_UTF_8
|
static MediaType |
MediaType.MBOX
The mbox database format.
|
static MediaType |
MediaType.MICROSOFT_EXCEL
Microsoft Excel spreadsheets.
|
static MediaType |
MediaType.MICROSOFT_OUTLOOK
Microsoft Outlook items.
|
static MediaType |
MediaType.MICROSOFT_POWERPOINT
Microsoft Powerpoint presentations.
|
static MediaType |
MediaType.MICROSOFT_WORD
Microsoft Word documents.
|
static MediaType |
MediaType.MP4_AUDIO |
static MediaType |
MediaType.MP4_VIDEO |
static MediaType |
MediaType.MPEG_AUDIO |
static MediaType |
MediaType.MPEG_VIDEO |
static MediaType |
MediaType.NACL_APPLICATION
NaCl applications.
|
static MediaType |
MediaType.NACL_PORTABLE_APPLICATION
NaCl portable applications.
|
static MediaType |
MediaType.OCTET_STREAM |
static MediaType |
MediaType.OGG_AUDIO |
static MediaType |
MediaType.OGG_CONTAINER |
static MediaType |
MediaType.OGG_VIDEO |
static MediaType |
MediaType.OOXML_DOCUMENT |
static MediaType |
MediaType.OOXML_PRESENTATION |
static MediaType |
MediaType.OOXML_SHEET |
static MediaType |
MediaType.OPENDOCUMENT_GRAPHICS |
static MediaType |
MediaType.OPENDOCUMENT_PRESENTATION |
static MediaType |
MediaType.OPENDOCUMENT_SPREADSHEET |
static MediaType |
MediaType.OPENDOCUMENT_TEXT |
static MediaType |
MediaType.PDF |
static MediaType |
MediaType.PLAIN_TEXT_UTF_8 |
static MediaType |
MediaType.PNG |
static MediaType |
MediaType.POSTSCRIPT |
static MediaType |
MediaType.PROTOBUF
|
static MediaType |
MediaType.PSD
|
static MediaType |
MediaType.QUICKTIME |
static MediaType |
MediaType.RDF_XML_UTF_8
RDF/XML documents, which are XML
serializations of Resource Description
Framework graphs.
|
static MediaType |
MediaType.RTF_UTF_8 |
static MediaType |
MediaType.SFNT
|
static MediaType |
MediaType.SHOCKWAVE_FLASH |
static MediaType |
MediaType.SKETCHUP
skp files produced by the 3D Modeling software SketchUp. |
static MediaType |
MediaType.SOAP_XML_UTF_8
As described in RFC 3902, this constant
(
application/soap+xml) is used to identify SOAP 1.2 message envelopes that have been
serialized with XML 1.0. |
static MediaType |
MediaType.SVG_UTF_8 |
static MediaType |
MediaType.TAR |
static MediaType |
MediaType.TEXT_JAVASCRIPT_UTF_8
RFC 4329 declares
application/javascript to be the correct media type for JavaScript, but this
may be necessary in certain situations for compatibility. |
static MediaType |
MediaType.THREE_GPP_VIDEO
The 3GP multimedia container format.
|
static MediaType |
MediaType.THREE_GPP2_VIDEO
The 3G2 multimedia container format.
|
static MediaType |
MediaType.TIFF |
static MediaType |
MediaType.TSV_UTF_8
|
static MediaType |
MediaType.VCARD_UTF_8 |
static MediaType |
MediaType.VND_REAL_AUDIO
Real Audio.
|
static MediaType |
MediaType.VND_WAVE_AUDIO
WAVE format, as defined by RFC 2361.
|
static MediaType |
MediaType.VORBIS_AUDIO
Vorbis Audio, as defined by RFC 5215.
|
static MediaType |
MediaType.VTT_UTF_8
As described in the VTT spec, this is
used for Web Video Text Tracks (WebVTT) files, used with the HTML5 track element.
|
static MediaType |
MediaType.WASM_APPLICATION
WASM applications.
|
static MediaType |
MediaType.WAX_AUDIO
Windows Media metafiles.
|
static MediaType |
MediaType.WEBM_AUDIO |
static MediaType |
MediaType.WEBM_VIDEO |
static MediaType |
MediaType.WEBP
|
static MediaType |
MediaType.WMA_AUDIO
Windows Media Audio.
|
static MediaType |
MediaType.WML_UTF_8
UTF-8 encoded Wireless Markup
Language.
|
static MediaType |
MediaType.WMV |
static MediaType |
MediaType.WOFF
Web Open Font Format (WOFF) defined by the W3C.
|
static MediaType |
MediaType.WOFF2
Web Open Font Format (WOFF)
version 2 defined by the W3C.
|
static MediaType |
MediaType.XHTML_UTF_8 |
static MediaType |
MediaType.XML_UTF_8
As described in RFC 3023, this constant
(
text/xml) is used for XML documents that are "readable by casual users." |
static MediaType |
MediaType.XRD_UTF_8
Extensible Resource Descriptors.
|
static MediaType |
MediaType.ZIP |
| Modifier and Type | Method and Description |
|---|---|
default MediaType |
HttpRequest.contentType()
Returns the value of the
'content-type' header. |
static MediaType |
MediaType.create(String type,
String subtype)
Creates a new media type with the given type and subtype.
|
MediaType |
MediaTypeSet.match(Iterable<MediaType> ranges)
|
MediaType |
MediaTypeSet.match(MediaType range)
|
MediaType |
MediaTypeSet.match(MediaType first,
MediaType... rest)
|
MediaType |
MediaTypeSet.matchHeaders(CharSequence... acceptHeaders)
|
MediaType |
MediaTypeSet.matchHeaders(Iterable<? extends CharSequence> acceptHeaders)
|
MediaType |
SerializationFormat.mediaType()
Returns the primary
MediaType of this format. |
static MediaType |
MediaType.parse(String input)
Parses a media type from its string representation.
|
MediaType |
MediaType.withCharset(Charset charset)
Returns a new instance with the same type and subtype as this instance, with the
charset parameter set to the name of the given charset. |
MediaType |
MediaType.withoutParameters()
Returns a new instance with the same type and subtype as this instance, but without any
parameters.
|
MediaType |
MediaType.withParameter(String attribute,
String value)
Replaces all parameters with the given attribute with a single parameter with the
given value.
|
MediaType |
MediaType.withParameters(Map<String,? extends Iterable<String>> parameters)
Replaces all parameters with the given parameters.
|
MediaType |
MediaType.withParameters(String attribute,
Iterable<String> values)
Replaces all parameters with the given attribute with parameters using the given
values.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<MediaType> |
MediaTypeSet.iterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MediaType.belongsTo(MediaType mediaTypeRange)
|
ResponseHeadersBuilder |
ResponseHeadersBuilder.contentType(MediaType contentType) |
RequestHeadersBuilder |
RequestHeadersBuilder.contentType(MediaType contentType) |
HttpHeadersBuilder |
HttpHeadersBuilder.contentType(MediaType contentType)
Sets the
"content-type" header. |
static SerializationFormat |
SerializationFormat.find(MediaType... ranges)
Finds the
SerializationFormat which is accepted by any of the specified media ranges. |
boolean |
MediaType.is(MediaType mediaTypeRange)
Returns
true if this instance falls within the range (as defined by the HTTP Accept header) given
by the argument according to three criteria:
The type of the argument is the wildcard or equal to the type of this instance. |
boolean |
SerializationFormat.isAccepted(MediaType range)
Returns whether the specified media range is accepted by any of the
SerializationFormat.mediaTypes()
defined by this format. |
boolean |
SerializationFormat.isAccepted(MediaType first,
MediaType... rest)
Returns whether any of the specified media ranges is accepted by any of the
SerializationFormat.mediaTypes()
defined by this format. |
boolean |
SerializationFormat.isAccepted(MediaType first,
MediaType... rest)
Returns whether any of the specified media ranges is accepted by any of the
SerializationFormat.mediaTypes()
defined by this format. |
MediaType |
MediaTypeSet.match(MediaType range)
|
MediaType |
MediaTypeSet.match(MediaType first,
MediaType... rest)
|
MediaType |
MediaTypeSet.match(MediaType first,
MediaType... rest)
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
byte[] content)
Creates a new HTTP request and closes the stream.
|
static AggregatedHttpRequest |
AggregatedHttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
byte[] content)
Creates a new HTTP request.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
CharSequence content)
Creates a new HTTP request and closes the stream.
|
static AggregatedHttpRequest |
AggregatedHttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
CharSequence content)
Creates a new HTTP request.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
HttpData content)
Creates a new HTTP request and closes the stream.
|
static AggregatedHttpRequest |
AggregatedHttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
HttpData content)
Creates a new HTTP request.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP request and closes the stream.
|
static AggregatedHttpRequest |
AggregatedHttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP request.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
String content)
Creates a new HTTP request and closes the stream.
|
static AggregatedHttpRequest |
AggregatedHttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
String content)
Creates a new HTTP request.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
String format,
Object... args)
Creates a new HTTP request and closes the stream.
|
static AggregatedHttpRequest |
AggregatedHttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
String format,
Object... args)
Creates a new HTTP request.
|
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
byte[] content)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
byte[] content)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
CharSequence content)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
CharSequence content)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
HttpData content)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
HttpData content)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
String content)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
String content)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
String format,
Object... args)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
String format,
Object... args)
Creates a new HTTP response of the specified
HttpStatus. |
static MediaTypeSet |
MediaTypeSet.of(MediaType... mediaTypes)
Returns the
MediaTypeSet which is composed of the specified MediaTypes. |
static HttpResponse |
HttpResponse.of(MediaType mediaType,
String content)
Creates a new HTTP response of OK status with the content.
|
static HttpResponse |
HttpResponse.of(MediaType mediaType,
String format,
Object... args)
Creates a new HTTP response of OK status with the content.
|
default void |
HttpResponseWriter.respond(HttpStatus status,
MediaType mediaType,
byte[] content)
Deprecated.
|
default void |
HttpResponseWriter.respond(HttpStatus status,
MediaType mediaType,
HttpData content)
Deprecated.
|
default void |
HttpResponseWriter.respond(HttpStatus status,
MediaType mediaType,
HttpData content,
HttpHeaders trailers)
Deprecated.
|
default void |
HttpResponseWriter.respond(HttpStatus status,
MediaType mediaType,
String content)
Deprecated.
|
default void |
HttpResponseWriter.respond(HttpStatus status,
MediaType mediaType,
String format,
Object... args)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SerializationFormat.isAccepted(Iterable<MediaType> ranges)
Returns whether any of the specified media ranges is accepted by any of the
SerializationFormat.mediaTypes()
defined by this format. |
MediaType |
MediaTypeSet.match(Iterable<MediaType> ranges)
|
static MediaTypeSet |
MediaTypeSet.of(Iterable<MediaType> mediaTypes)
Returns the
MediaTypeSet which is composed of the specified MediaTypes. |
| Constructor and Description |
|---|
Entry(String uriText,
MediaType primaryMediaType,
MediaType... alternativeMediaTypes)
Creates a new instance.
|
Entry(String uriText,
MediaType primaryMediaType,
MediaType... alternativeMediaTypes)
Creates a new instance.
|
MediaTypeSet(MediaType... mediaTypes)
Deprecated.
|
| Constructor and Description |
|---|
MediaTypeSet(Iterable<MediaType> mediaTypes)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(BiFunction<? super HttpHeaders,? super io.netty.buffer.ByteBuf,String> producer,
MediaType... mediaTypes)
Sets the specified
MediaTypes to produce the preview using the specified BiFunction
when the content type of the RequestHeaders or ResponseHeaders is one of the
MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(MediaType... mediaTypes)
Sets the specified
MediaTypes to produce the
hex dump preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.disable(MediaType... mediaTypes)
Sets the specified
MediaTypes NOT to produce the preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.text(MediaType... mediaTypes)
Sets the specified
MediaTypes to produce the text preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
| Modifier and Type | Method and Description |
|---|---|
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(BiFunction<? super HttpHeaders,? super io.netty.buffer.ByteBuf,String> producer,
Iterable<MediaType> mediaTypes)
Sets the specified
MediaTypes to produce the preview using the specified BiFunction
when the content type of the RequestHeaders or ResponseHeaders is one of the
MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.binary(Iterable<MediaType> mediaTypes)
Sets the specified
MediaTypes to produce the
hex dump preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.disable(Iterable<MediaType> mediaTypes)
Sets the specified
MediaTypes NOT to produce the preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
ContentPreviewerFactoryBuilder |
ContentPreviewerFactoryBuilder.text(Iterable<MediaType> mediaTypes)
Sets the specified
MediaTypes to produce the text preview when the content type of the
RequestHeaders or ResponseHeaders is one of the MediaTypes. |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
RoutingContext.contentType()
Returns
MediaType specified by 'Content-Type' header of the request. |
default MediaType |
ServiceRequestContext.negotiatedProduceType()
Deprecated.
|
MediaType |
ServiceRequestContextWrapper.negotiatedResponseMediaType() |
MediaType |
ServiceRequestContext.negotiatedResponseMediaType()
Returns the negotiated producible media type.
|
MediaType |
RoutingResult.negotiatedResponseMediaType()
Returns the negotiated producible media type.
|
MediaType |
DefaultServiceRequestContext.negotiatedResponseMediaType() |
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
RoutingContext.acceptTypes()
Returns a list of
MediaTypes that are specified in HttpHeaderNames.ACCEPT in the order
of client-side preferences. |
Set<MediaType> |
Route.consumes()
|
Set<MediaType> |
Route.produces()
|
| Modifier and Type | Method and Description |
|---|---|
VirtualHostServiceBindingBuilder |
VirtualHostServiceBindingBuilder.consumes(MediaType... consumeTypes) |
VirtualHostDecoratingServiceBindingBuilder |
VirtualHostDecoratingServiceBindingBuilder.consumes(MediaType... consumeTypes) |
ServiceBindingBuilder |
ServiceBindingBuilder.consumes(MediaType... consumeTypes) |
RouteBuilder |
RouteBuilder.consumes(MediaType... consumeTypes)
|
DecoratingServiceBindingBuilder |
DecoratingServiceBindingBuilder.consumes(MediaType... consumeTypes) |
RoutingResultBuilder |
RoutingResultBuilder.negotiatedResponseMediaType(MediaType negotiatedResponseMediaType)
Sets the negotiated producible
MediaType. |
VirtualHostServiceBindingBuilder |
VirtualHostServiceBindingBuilder.produces(MediaType... produceTypes) |
VirtualHostDecoratingServiceBindingBuilder |
VirtualHostDecoratingServiceBindingBuilder.produces(MediaType... produceTypes) |
ServiceBindingBuilder |
ServiceBindingBuilder.produces(MediaType... produceTypes) |
RouteBuilder |
RouteBuilder.produces(MediaType... produceTypes)
|
DecoratingServiceBindingBuilder |
DecoratingServiceBindingBuilder.produces(MediaType... produceTypes) |
| Modifier and Type | Method and Description |
|---|---|
VirtualHostServiceBindingBuilder |
VirtualHostServiceBindingBuilder.consumes(Iterable<MediaType> consumeTypes) |
VirtualHostDecoratingServiceBindingBuilder |
VirtualHostDecoratingServiceBindingBuilder.consumes(Iterable<MediaType> consumeTypes) |
ServiceBindingBuilder |
ServiceBindingBuilder.consumes(Iterable<MediaType> consumeTypes) |
RouteBuilder |
RouteBuilder.consumes(Iterable<MediaType> consumeTypes)
|
DecoratingServiceBindingBuilder |
DecoratingServiceBindingBuilder.consumes(Iterable<MediaType> consumeTypes) |
VirtualHostServiceBindingBuilder |
VirtualHostServiceBindingBuilder.produces(Iterable<MediaType> produceTypes) |
VirtualHostDecoratingServiceBindingBuilder |
VirtualHostDecoratingServiceBindingBuilder.produces(Iterable<MediaType> produceTypes) |
ServiceBindingBuilder |
ServiceBindingBuilder.produces(Iterable<MediaType> produceTypes) |
RouteBuilder |
RouteBuilder.produces(Iterable<MediaType> produceTypes)
|
DecoratingServiceBindingBuilder |
DecoratingServiceBindingBuilder.produces(Iterable<MediaType> produceTypes) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
EndpointInfo.defaultMimeType()
Returns the default MIME type of this endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
Set<MediaType> |
EndpointInfo.availableMimeTypes()
Returns the set of available MIME types of this endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
EndpointInfoBuilder |
EndpointInfoBuilder.availableMimeTypes(MediaType... availableMimeTypes)
Sets the available
MediaTypes. |
EndpointInfoBuilder |
EndpointInfoBuilder.defaultMimeType(MediaType defaultMimeType)
Sets the default
MediaType. |
| Modifier and Type | Method and Description |
|---|---|
EndpointInfoBuilder |
EndpointInfoBuilder.availableMimeTypes(Iterable<MediaType> availableMimeTypes)
Sets the available
MediaTypes. |
| Modifier and Type | Method and Description |
|---|---|
EncodingServiceBuilder |
EncodingServiceBuilder.encodableContentTypes(MediaType... contentTypes)
Sets the specified
MediaTypes to evaluate whether the content type of the HttpResponse
is encodable or not. |
| Modifier and Type | Method and Description |
|---|---|
EncodingServiceBuilder |
EncodingServiceBuilder.encodableContentTypePredicate(Predicate<MediaType> encodableContentTypePredicate)
Sets the specified
Predicate to evaluate whether the content type of the HttpResponse is
encodable or not. |
EncodingServiceBuilder |
EncodingServiceBuilder.encodableContentTypes(Iterable<MediaType> contentTypes)
Sets the specified
MediaTypes to evaluate whether the content type of the HttpResponse
is encodable or not. |
| Modifier and Type | Method and Description |
|---|---|
protected MediaType |
AbstractHttpFile.contentType()
Returns the
MediaType of the file, which will be used for setting the "content-type"
header. |
| Modifier and Type | Method and Description |
|---|---|
HttpFileBuilder |
HttpFileBuilder.contentType(MediaType contentType) |
AbstractHttpFileBuilder |
AbstractHttpFileBuilder.contentType(MediaType contentType)
Sets the
"content-type" header. |
| Constructor and Description |
|---|
AbstractHttpFile(MediaType contentType,
Clock clock,
boolean dateEnabled,
boolean lastModifiedEnabled,
BiFunction<String,HttpFileAttributes,String> entityTagFunction,
HttpHeaders headers)
Creates a new instance.
|
StreamingHttpFile(MediaType contentType,
Clock clock,
boolean dateEnabled,
boolean lastModifiedEnabled,
BiFunction<String,HttpFileAttributes,String> entityTagFunction,
HttpHeaders headers)
Creates a new instance.
|
Copyright © 2020 LeanCloud. All rights reserved.