Package | Description |
---|---|
org.refcodes.net |
Use the types and definitions of this artifact when you are tired of defining
your own networking based basics, your own HTTP-status-code enumerations
(
HttpStatusCode or exceptions representing erroneous
HTTP state, or if you are tired of cookie handling, Header-Field processing
... and so on:
This artifact provides various types such as Cookie ,
FormFields , HeaderFields or
HttpMethod , which enable you to use such HTTP based
structures in a native Java way while having a tool at hand to bridge back
into the HTTP protocol world. |
org.refcodes.net.impls |
This package contains implementations of the types defined by this artifact.
|
Modifier and Type | Method and Description |
---|---|
static MediaType |
MediaType.fromHttpMediaSubtype(String aHttpMediaSubtype)
Retrieves the
MediaType representing the provided HTTP Media-Type
(ignoring the case). |
static MediaType[] |
MediaType.fromTopLevelType(TopLevelType aTopLevelType)
Returns all herein defined
MediaType elements belonging to the
given TopLevelType . |
MediaType[] |
MediaTypeFactoryLookup.getFactoryMediaTypes()
Returns the currently supported
MediaType s as of the
MediaTypeFactory instances being added and in the order of them
being added. |
MediaType |
MediaTypeAccessor.getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
static MediaType |
MediaType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaType[] |
MediaType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
MediaTypeFactoryLookup.hasMediaTypeFactory(MediaType aMediaType)
Determines whether there is a
MediaTypeFactory for the given
MediaType . |
default ContentType |
HeaderFields.putContentType(MediaType aMediaType,
org.refcodes.structure.Properties aParameters)
Sets the Content-Type entity-Header-Field
HeaderField.CONTENT_TYPE . :
"... |
void |
MediaTypeAccessor.MediaTypeMutator.setMediaType(MediaType aMediaType)
Sets the Media-Type for the Media-Type property.
|
MediaTypeFactory |
MediaTypeFactoryLookup.toMediaTypeFactory(MediaType aMediaType)
Retrieves the
MediaTypeFactory related to the given
MediaType or null if there is none such MediaTypeFactory . |
default B |
HeaderFields.withContentType(MediaType aMediaType,
org.refcodes.structure.Properties aParameters)
Sets the Content-Type's
MediaType and the parameters for the HTTP
body. |
B |
MediaTypeAccessor.MediaTypeBuilder.withMediaType(MediaType aMediaType)
Sets the Media-Type for the Media-Type property.
|
Modifier and Type | Method and Description |
---|---|
MediaType |
ApplicationJsonFactory.getMediaType()
Gets the media type.
|
MediaType |
TextPlainFactory.getMediaType()
Gets the media type.
|
MediaType |
ApplicationXml2Factory.getMediaType()
Gets the media type.
|
MediaType |
ContentTypeImpl.getMediaType() |
MediaType |
ApplicationXmlFactory.getMediaType()
Gets the media type.
|
MediaType |
TextXmlFactory.getMediaType()
Gets the media type.
|
MediaType |
ApplicationFormFactory.getMediaType()
Gets the media type.
|
Constructor and Description |
---|
ContentTypeImpl(MediaType aMediaType)
|
ContentTypeImpl(MediaType aMediaType,
org.refcodes.structure.Properties aProperties)
Instantiates a new content type impl.
|
Copyright © 2017. All rights reserved.