Class HttpContentType

java.lang.Object
org.apache.jena.sparql.engine.http.HttpContentType

public class HttpContentType extends Object
Handle HTTP content type
  • Constructor Details

    • HttpContentType

      public HttpContentType(String s)
    • HttpContentType

      public HttpContentType(String s, String defaultMediaType, String defaultCharset)
  • Method Details

    • getMediaType

      public String getMediaType()
      Returns:
      Media type as string
    • setCharset

      public void setCharset(String charset)
      Parameters:
      charset - The charset to set.
    • getCharset

      public String getCharset()
      Returns:
      charset as string
    • setMediaType

      public void setMediaType(String mediaType)
      Parameters:
      mediaType - The mediaType to set.
    • toString

      public String toString()
      Overrides:
      toString in class Object