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/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 Constructor Description _DocumentType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asContentType()
Gets the document type as a Content-Type header value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.funnelback.filter.api.DocumentType
isHTML, isJSON, isXML
-
-
-
-
Field Detail
-
HTML
public final boolean HTML
- See Also:
- Constant Field Values
-
XML
public final boolean XML
- See Also:
- Constant Field Values
-
JSON
public final boolean JSON
- See Also:
- Constant Field Values
-
contentType
public final 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.
-
-