com.hp.hpl.jena.sparql.engine.http
Class HttpContentType
java.lang.Object
com.hp.hpl.jena.sparql.engine.http.HttpContentType
public class HttpContentType
- extends java.lang.Object
Handle HTTP content type
|
Constructor Summary |
HttpContentType(java.lang.String s)
|
HttpContentType(java.lang.String s,
java.lang.String defaultMediaType,
java.lang.String defaultCharset)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HttpContentType
public HttpContentType(java.lang.String s)
HttpContentType
public HttpContentType(java.lang.String s,
java.lang.String defaultMediaType,
java.lang.String defaultCharset)
getMediaType
public java.lang.String getMediaType()
- Returns:
- Media type as string
setCharset
public void setCharset(java.lang.String charset)
- Parameters:
charset - The charset to set.
getCharset
public java.lang.String getCharset()
- Returns:
- charset as string
setMediaType
public void setMediaType(java.lang.String mediaType)
- Parameters:
mediaType - The mediaType to set.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.