Class ParsedContentType
- java.lang.Object
-
- org.htmlunit.corejs.javascript.commonjs.module.provider.ParsedContentType
-
- All Implemented Interfaces:
java.io.Serializable
public final class ParsedContentType extends java.lang.Object implements java.io.Serializable
Breaks a "contentType; charset=encoding" MIME type into content type and encoding parts.- Version:
- $Id: ParsedContentType.java,v 1.3 2011/04/07 20:26:12 hannes%helma.at Exp $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
contentType
private java.lang.String
encoding
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ParsedContentType(java.lang.String mimeType)
Creates a new parsed content type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
Returns the content type (without charset declaration) of the MIME type.java.lang.String
getEncoding()
Returns the character encoding of the MIME type.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
contentType
private final java.lang.String contentType
-
encoding
private final java.lang.String encoding
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
Returns the content type (without charset declaration) of the MIME type.- Returns:
- the content type (without charset declaration) of the MIME type. Can be null if the MIME type was null.
-
getEncoding
public java.lang.String getEncoding()
Returns the character encoding of the MIME type.- Returns:
- the character encoding of the MIME type. Can be null when it is not specified.
-
-