Interface Headers.ContentType

All Superinterfaces:
Header
Enclosing class:
Headers

public static interface Headers.ContentType extends Header

Content-type HTTP header as defined by RFC 7231 Section 3.1.1.5.

Since:
1.0
Author:
Jeremy Kuhn
  • Field Details

  • Method Details

    • getMediaType

      String getMediaType()

      Returns the media type composed of type and sub-type parts without parameters.

      Returns:
      a raw media type
    • getType

      String getType()

      Returns the type part.

      Returns:
      the type part
    • getSubType

      String getSubType()

      Returns the sub-type part.

      Returns:
      the sub-type part
    • getBoundary

      String getBoundary()

      Returns the boundary.

      Returns:
      the boundary or null
    • getCharset

      Charset getCharset()

      Returns the charset.

      Returns:
      the charset of null
    • getParameters

      Map<String,String> getParameters()

      Returns the content type parameters.

      Returns:
      a map of parameters
    • toMediaRange

      Converts the content type to a media range.

      Returns:
      the media range corresponding to the content type