com.hp.hpl.jena.sparql.engine.http
Class HttpContentType

java.lang.Object
  extended by com.hp.hpl.jena.sparql.engine.http.HttpContentType

public class HttpContentType
extends Object

Handle HTTP content type


Constructor Summary
HttpContentType(String s)
           
HttpContentType(String s, String defaultMediaType, String defaultCharset)
           
 
Method Summary
 String getCharset()
           
 String getMediaType()
           
 void setCharset(String charset)
           
 void setMediaType(String mediaType)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpContentType

public HttpContentType(String s)

HttpContentType

public HttpContentType(String s,
                       String defaultMediaType,
                       String defaultCharset)
Method Detail

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


Licenced under the Apache License, Version 2.0