Uses of Interface
io.helidon.common.http.HttpMediaType
-
Uses of HttpMediaType in io.helidon.common.http
Fields in io.helidon.common.http declared as HttpMediaTypeModifier and TypeFieldDescriptionstatic final HttpMediaTypeHttpMediaType.APPLICATION_JSONapplication/jsonmedia type without parameters.static final HttpMediaTypeHttpMediaType.APPLICATION_OCTET_STREAMapplication/octet-streammedia type without parameters.static final HttpMediaTypeHttpMediaType.JSON_UTF_8application/json media type with UTF-8 charset.static final HttpMediaTypeHttpMediaType.PLAINTEXT_UTF_8text/plain media type with UTF-8 charset.static final HttpMediaTypeHttpMediaType.TEXT_PLAINtext/plainmedia type without parameters.Fields in io.helidon.common.http with type parameters of type HttpMediaTypeModifier and TypeFieldDescriptionstatic final List<HttpMediaType>HeadersServerRequest.HUC_ACCEPT_DEFAULT_TYPESAccepted types forHeadersServerRequest.HUC_ACCEPT_DEFAULT.static final Predicate<HttpMediaType>HttpMediaType.JSON_EVENT_STREAM_PREDICATEPredicate to test ifMediaTypeistext/event-streamwithout any parameter or with parameter "element-type".static final Predicate<HttpMediaType>HttpMediaType.JSON_PREDICATEMethods in io.helidon.common.http that return HttpMediaTypeModifier and TypeMethodDescriptionHttpMediaType.Builder.build()static HttpMediaTypeCreate a new HTTP media type from media type.static HttpMediaTypeParse media type from the provided string.default HttpMediaTypeHttpMediaType.withCharset(String charset) Create a newHttpMediaTypeinstance with the same type, subtype and parameters copied from the original instance and the supplied "charset" parameter.default HttpMediaTypeHttpMediaType.withParameter(String name, String value) Create a newHttpMediaTypeinstance with the same type, subtype and parameters copied from the original instance and the supplied custom parameter.Methods in io.helidon.common.http that return types with arguments of type HttpMediaTypeModifier and TypeMethodDescriptionHeaders.acceptedTypes()Returns a list of acceptedTypes (Http.Header.ACCEPTheader) content types in quality factor order.default List<HttpMediaType>HeadersClientResponse.acceptPatches()Accepted patches.default Optional<HttpMediaType>Headers.contentType()Content type (if defined).Methods in io.helidon.common.http with parameters of type HttpMediaTypeModifier and TypeMethodDescriptiondefault HeadersClientRequestHeadersClientRequest.accept(HttpMediaType... accepted) Accepted media types.default HeadersServerResponseHeadersServerResponse.addAcceptPatches(HttpMediaType... acceptableMediaTypes) Adds one or more acceptedTypes path document formats (headerHttp.Header.ACCEPT_PATCH).default BHeadersWritable.contentType(HttpMediaType contentType) Sets the MIME type of the response body.booleanHttpMediaType.test(HttpMediaType other) Check if this media type is compatible with another media type.