org.apache.jena.riot
Class WebContent

java.lang.Object
  extended by org.apache.jena.riot.WebContent

public class WebContent
extends Object


Field Summary
static String charsetASCII
           
static String charsetUTF8
           
static String contentTypeHTMLForm
           
static String contentTypeJSON
           
static String contentTypeJSONLD
           
static String contentTypeMultiAlt
           
static String contentTypeMultipartFormData
           
static String contentTypeMultipartMixed
           
static String contentTypeN3
           
static String contentTypeN3Alt1
           
static String contentTypeN3Alt2
           
static String contentTypeNQuads
           
static String contentTypeNQuadsAlt1
           
static String contentTypeNQuadsAlt2
           
static String contentTypeNTriples
           
static String contentTypeNTriplesAlt
           
static String contentTypeOctets
           
static String contentTypeRdfJson
           
static String contentTypeRDFJSON
           
static String contentTypeRDFXML
           
static String contentTypeResultsBIO
           
static String contentTypeResultsJSON
           
static String contentTypeResultsXML
           
static String contentTypeSPARQLQuery
           
static String contentTypeSPARQLUpdate
           
static String contentTypeSSE
           
static String contentTypeTextCSV
           
static String contentTypeTextPlain
           
static String contentTypeTextTSV
           
static String contentTypeTriG
           
static String contentTypeTriGAlt1
           
static String contentTypeTriGAlt2
           
static String contentTypeTriX
           
static String contentTypeTurtle
           
static String contentTypeTurtleAlt1
           
static String contentTypeTurtleAlt2
           
static String contentTypeXML
           
static String contentTypeXMLAlt
           
static ContentType ctHTMLForm
           
static ContentType ctJSON
           
static ContentType ctJSONLD
           
static ContentType ctMultiAlt
           
static ContentType ctMultipartFormData
           
static ContentType ctMultipartMixed
           
static ContentType ctN3Alt1
           
static ContentType ctN3Alt2
           
static ContentType ctNQuads
           
static ContentType ctNQuadsAlt1
           
static ContentType ctNQuadsAlt2
           
static ContentType ctNTriples
           
static ContentType ctNTriplesAlt
           
static ContentType ctOctets
           
static ContentType ctRdfJson
           
static ContentType ctRDFJSON
           
static ContentType ctRDFXML
           
static ContentType ctResultsBIO
           
static ContentType ctResultsJSON
           
static ContentType ctResultsXML
           
static ContentType ctSPARQLQuery
           
static ContentType ctSPARQLUpdate
           
static ContentType ctSSE
           
static ContentType ctTextCSV
           
static ContentType ctTextPlain
           
static ContentType ctTextTSV
           
static ContentType ctTriG
           
static ContentType ctTriGAlt1
           
static ContentType ctTriGAlt2
           
static ContentType ctTriX
           
static ContentType ctTurtle
           
static ContentType ctTurtleAlt1
           
static ContentType ctTurtleAlt2
           
static ContentType ctTypeN3
           
static ContentType ctXML
           
static ContentType ctXMLAlt
           
static String defaultDatasetAcceptHeader
          Accept header when looking for a dataset
static String defaultGraphAcceptHeader
          Accept header when looking for a graph
static String defaultRDFAcceptHeader
          Accept header when looking for a graph or dataset
static String encodingUTF8
          Java name for UTF-8 encoding
static String langN3
           
static String langNQuads
           
static String langNTriple
           
static String langNTriples
           
static String langRdfJson
           
static String langRDFXML
           
static String langRDFXMLAbbrev
           
static String langTriG
           
static String langTTL
           
static String langTurtle
           
 
Constructor Summary
WebContent()
           
 
Method Summary
static String contentTypeCanonical(String contentType)
          Return our "canonical" name for a Content Type.
static Lang contentTypeToLang(String contentType)
          Deprecated. Use RDFLanguages.contentTypeToLang(String)
static String getCharsetForContentType(String contentType)
          Deprecated. Use RDFLanguages.getCharsetForContentType(String)
static boolean isHtmlForm(ContentType ct)
           
static boolean isMultiPartForm(ContentType ct)
           
static String mapLangToContentType(Lang lang)
          Deprecated. Use Lang.getHeaderString()
static boolean matchContentType(ContentType ct1, ContentType ct2)
          Match content type (ignores charsets and other parameters)
static boolean matchContentType(String ct1, String ct2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentTypeTurtle

public static final String contentTypeTurtle
See Also:
Constant Field Values

ctTurtle

public static final ContentType ctTurtle

contentTypeTurtleAlt1

public static final String contentTypeTurtleAlt1
See Also:
Constant Field Values

ctTurtleAlt1

public static final ContentType ctTurtleAlt1

contentTypeTurtleAlt2

public static final String contentTypeTurtleAlt2
See Also:
Constant Field Values

ctTurtleAlt2

public static final ContentType ctTurtleAlt2

contentTypeRDFXML

public static final String contentTypeRDFXML
See Also:
Constant Field Values

ctRDFXML

public static final ContentType ctRDFXML

contentTypeRDFJSON

public static final String contentTypeRDFJSON
See Also:
Constant Field Values

ctRDFJSON

public static final ContentType ctRDFJSON

contentTypeJSONLD

public static final String contentTypeJSONLD
See Also:
Constant Field Values

ctJSONLD

public static final ContentType ctJSONLD

contentTypeTextPlain

public static final String contentTypeTextPlain
See Also:
Constant Field Values

ctTextPlain

public static final ContentType ctTextPlain

contentTypeNTriples

public static final String contentTypeNTriples
See Also:
Constant Field Values

ctNTriples

public static final ContentType ctNTriples

contentTypeNTriplesAlt

public static final String contentTypeNTriplesAlt
See Also:
Constant Field Values

ctNTriplesAlt

public static final ContentType ctNTriplesAlt

contentTypeXML

public static final String contentTypeXML
See Also:
Constant Field Values

ctXML

public static final ContentType ctXML

contentTypeXMLAlt

public static final String contentTypeXMLAlt
See Also:
Constant Field Values

ctXMLAlt

public static final ContentType ctXMLAlt

contentTypeTriG

public static final String contentTypeTriG
See Also:
Constant Field Values

ctTriG

public static final ContentType ctTriG

contentTypeNQuads

public static final String contentTypeNQuads
See Also:
Constant Field Values

ctNQuads

public static final ContentType ctNQuads

contentTypeTriGAlt1

public static final String contentTypeTriGAlt1
See Also:
Constant Field Values

ctTriGAlt1

public static final ContentType ctTriGAlt1

contentTypeTriGAlt2

public static final String contentTypeTriGAlt2
See Also:
Constant Field Values

ctTriGAlt2

public static final ContentType ctTriGAlt2

contentTypeNQuadsAlt1

public static final String contentTypeNQuadsAlt1
See Also:
Constant Field Values

ctNQuadsAlt1

public static final ContentType ctNQuadsAlt1

contentTypeNQuadsAlt2

public static final String contentTypeNQuadsAlt2
See Also:
Constant Field Values

ctNQuadsAlt2

public static final ContentType ctNQuadsAlt2

contentTypeTriX

public static final String contentTypeTriX
See Also:
Constant Field Values

ctTriX

public static final ContentType ctTriX

contentTypeOctets

public static final String contentTypeOctets
See Also:
Constant Field Values

ctOctets

public static final ContentType ctOctets

contentTypeMultipartMixed

public static final String contentTypeMultipartMixed
See Also:
Constant Field Values

ctMultipartMixed

public static final ContentType ctMultipartMixed

contentTypeMultipartFormData

public static final String contentTypeMultipartFormData
See Also:
Constant Field Values

ctMultipartFormData

public static final ContentType ctMultipartFormData

contentTypeMultiAlt

public static final String contentTypeMultiAlt
See Also:
Constant Field Values

ctMultiAlt

public static final ContentType ctMultiAlt

contentTypeRdfJson

public static final String contentTypeRdfJson
See Also:
Constant Field Values

ctRdfJson

public static final ContentType ctRdfJson

contentTypeN3

public static final String contentTypeN3
See Also:
Constant Field Values

ctTypeN3

public static final ContentType ctTypeN3

contentTypeN3Alt1

public static final String contentTypeN3Alt1
See Also:
Constant Field Values

ctN3Alt1

public static final ContentType ctN3Alt1

contentTypeN3Alt2

public static final String contentTypeN3Alt2
See Also:
Constant Field Values

ctN3Alt2

public static final ContentType ctN3Alt2

contentTypeResultsXML

public static final String contentTypeResultsXML
See Also:
Constant Field Values

ctResultsXML

public static final ContentType ctResultsXML

contentTypeResultsJSON

public static final String contentTypeResultsJSON
See Also:
Constant Field Values

ctResultsJSON

public static final ContentType ctResultsJSON

contentTypeJSON

public static final String contentTypeJSON
See Also:
Constant Field Values

ctJSON

public static final ContentType ctJSON

contentTypeResultsBIO

public static final String contentTypeResultsBIO
See Also:
Constant Field Values

ctResultsBIO

public static final ContentType ctResultsBIO

contentTypeSPARQLQuery

public static final String contentTypeSPARQLQuery
See Also:
Constant Field Values

ctSPARQLQuery

public static final ContentType ctSPARQLQuery

contentTypeSPARQLUpdate

public static final String contentTypeSPARQLUpdate
See Also:
Constant Field Values

ctSPARQLUpdate

public static final ContentType ctSPARQLUpdate

contentTypeHTMLForm

public static final String contentTypeHTMLForm
See Also:
Constant Field Values

ctHTMLForm

public static final ContentType ctHTMLForm

contentTypeTextCSV

public static final String contentTypeTextCSV
See Also:
Constant Field Values

ctTextCSV

public static final ContentType ctTextCSV

contentTypeTextTSV

public static final String contentTypeTextTSV
See Also:
Constant Field Values

ctTextTSV

public static final ContentType ctTextTSV

contentTypeSSE

public static final String contentTypeSSE
See Also:
Constant Field Values

ctSSE

public static final ContentType ctSSE

charsetUTF8

public static final String charsetUTF8
See Also:
Constant Field Values

charsetASCII

public static final String charsetASCII
See Also:
Constant Field Values

langRDFXML

public static final String langRDFXML
See Also:
Constant Field Values

langRDFXMLAbbrev

public static final String langRDFXMLAbbrev
See Also:
Constant Field Values

langNTriple

public static final String langNTriple
See Also:
Constant Field Values

langNTriples

public static final String langNTriples
See Also:
Constant Field Values

langN3

public static final String langN3
See Also:
Constant Field Values

langTurtle

public static final String langTurtle
See Also:
Constant Field Values

langTTL

public static final String langTTL
See Also:
Constant Field Values

langRdfJson

public static final String langRdfJson
See Also:
Constant Field Values

langNQuads

public static final String langNQuads
See Also:
Constant Field Values

langTriG

public static final String langTriG
See Also:
Constant Field Values

encodingUTF8

public static final String encodingUTF8
Java name for UTF-8 encoding

See Also:
Constant Field Values

defaultGraphAcceptHeader

public static final String defaultGraphAcceptHeader
Accept header when looking for a graph

See Also:
Constant Field Values

defaultDatasetAcceptHeader

public static final String defaultDatasetAcceptHeader
Accept header when looking for a dataset

See Also:
Constant Field Values

defaultRDFAcceptHeader

public static final String defaultRDFAcceptHeader
Accept header when looking for a graph or dataset

See Also:
Constant Field Values
Constructor Detail

WebContent

public WebContent()
Method Detail

contentTypeCanonical

public static String contentTypeCanonical(String contentType)
Return our "canonical" name for a Content Type. This should be the standard one, no X-*


matchContentType

public static boolean matchContentType(ContentType ct1,
                                       ContentType ct2)
Match content type (ignores charsets and other parameters)


matchContentType

public static boolean matchContentType(String ct1,
                                       String ct2)

isHtmlForm

public static boolean isHtmlForm(ContentType ct)

isMultiPartForm

public static boolean isMultiPartForm(ContentType ct)

contentTypeToLang

@Deprecated
public static Lang contentTypeToLang(String contentType)
Deprecated. Use RDFLanguages.contentTypeToLang(String)


mapLangToContentType

@Deprecated
public static String mapLangToContentType(Lang lang)
Deprecated. Use Lang.getHeaderString()


getCharsetForContentType

@Deprecated
public static String getCharsetForContentType(String contentType)
Deprecated. Use RDFLanguages.getCharsetForContentType(String)



Licenced under the Apache License, Version 2.0