Class DocumentType._DocumentType

    • 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 interface DocumentType
        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()
      • isHTML

        public boolean isHTML()
        Specified by:
        isHTML in interface DocumentType
        Returns:
        true if the document type is considered to be HTML, includes xhtml, otherwise false.
      • isXML

        public boolean isXML()
        Specified by:
        isXML in interface DocumentType
        Returns:
        true if the document type is considered to be XML, includes xhtml, otherwise false.
      • isJSON

        public boolean isJSON()
        Specified by:
        isJSON in interface DocumentType
        Returns:
        true if the document type is considered to be JSON, otherwise false.