org.apache.jena.atlas.web
Class ContentType

java.lang.Object
  extended by org.apache.jena.atlas.web.ContentType

public class ContentType
extends Object

A restricted view of MediaType


Method Summary
static ContentType create(String string)
           
static ContentType create(String ctString, String charset)
           
 boolean equals(Object obj)
           
 String getCharset()
           
 String getContentType()
           
 String getSubType()
           
 String getType()
           
 int hashCode()
           
static ContentType parse(String string)
          Deprecated. use create(String)
 String toHeaderString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

parse

@Deprecated
public static ContentType parse(String string)
Deprecated. use create(String)


create

public static ContentType create(String string)

create

public static ContentType create(String ctString,
                                 String charset)

getContentType

public String getContentType()

getCharset

public String getCharset()

getType

public String getType()

getSubType

public String getSubType()

toHeaderString

public String toHeaderString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Licenced under the Apache License, Version 2.0