Package com.funnelback.filter.api
Class DocumentType._DocumentType
- java.lang.Object
-
- com.funnelback.filter.api.DocumentType._DocumentType
-
- All Implemented Interfaces:
DocumentType
- Enclosing interface:
- DocumentType
public static class DocumentType._DocumentType extends Object implements DocumentType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DocumentType._DocumentType._DocumentTypeBuilder
-
Nested classes/interfaces inherited from interface com.funnelback.filter.api.DocumentType
DocumentType._DocumentType
-
-
Field Summary
Fields Modifier and Type Field Description String
contentType
boolean
HTML
boolean
JSON
boolean
XML
-
Fields inherited from interface com.funnelback.filter.api.DocumentType
APPLICATION_JSON_TEXT, MIME_APPLICATION_JSON_TEXT, MIME_CSV_TEXT, MIME_HTML_TEXT, MIME_TEXT_PLAIN, MIME_UNKNOWN, MIME_XHTML_TEXT, MIME_XHTML_XML, MIME_XML_TEXT
-
-
Constructor Summary
Constructors Modifier Constructor Description private
_DocumentType(boolean HTML, boolean XML, boolean JSON, String contentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static boolean
$default$HTML()
private static boolean
$default$JSON()
private static boolean
$default$XML()
String
asContentType()
Gets the document type as a Content-Type header value.private static DocumentType._DocumentType._DocumentTypeBuilder
builder()
boolean
isHTML()
boolean
isJSON()
boolean
isXML()
-
-
-
Field Detail
-
HTML
public final boolean HTML
-
XML
public final boolean XML
-
JSON
public final boolean JSON
-
contentType
public final String contentType
-
-
Constructor Detail
-
_DocumentType
private _DocumentType(boolean HTML, boolean XML, boolean JSON, String contentType)
-
-
Method Detail
-
asContentType
public String asContentType()
Description copied from interface:DocumentType
Gets the document type as a Content-Type header value.- Specified by:
asContentType
in interfaceDocumentType
- Returns:
- the document type as a HTTP compatible Content-Type.
-
$default$HTML
private static boolean $default$HTML()
-
$default$XML
private static boolean $default$XML()
-
$default$JSON
private static boolean $default$JSON()
-
builder
private static DocumentType._DocumentType._DocumentTypeBuilder builder()
-
isHTML
public boolean isHTML()
- Specified by:
isHTML
in interfaceDocumentType
- Returns:
- true if the document type is considered to be HTML, includes xhtml, otherwise false.
-
isXML
public boolean isXML()
- Specified by:
isXML
in interfaceDocumentType
- Returns:
- true if the document type is considered to be XML, includes xhtml, otherwise false.
-
isJSON
public boolean isJSON()
- Specified by:
isJSON
in interfaceDocumentType
- Returns:
- true if the document type is considered to be JSON, otherwise false.
-
-