com.xmlcalabash.util
Class HttpUtils
java.lang.Object
com.xmlcalabash.util.HttpUtils
public class HttpUtils
- extends java.lang.Object
Created by IntelliJ IDEA.
User: ndw
Date: Feb 26, 2010
Time: 1:51:25 PM
To change this template use File | Settings | File Templates.
Constructor Summary |
protected |
HttpUtils()
Creates a new instance of HttpUtils |
Method Summary |
static java.lang.String |
baseContentType(java.lang.String contentType)
|
static java.lang.String |
getCharset(java.lang.String contentType)
|
static java.lang.String |
getCharset(java.lang.String contentType,
java.lang.String defaultCharset)
|
static boolean |
jsonContentType(java.lang.String contentType)
|
static boolean |
textContentType(java.lang.String contentType)
|
static boolean |
xmlContentType(java.lang.String contentType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpUtils
protected HttpUtils()
- Creates a new instance of HttpUtils
baseContentType
public static java.lang.String baseContentType(java.lang.String contentType)
xmlContentType
public static boolean xmlContentType(java.lang.String contentType)
jsonContentType
public static boolean jsonContentType(java.lang.String contentType)
textContentType
public static boolean textContentType(java.lang.String contentType)
getCharset
public static java.lang.String getCharset(java.lang.String contentType,
java.lang.String defaultCharset)
getCharset
public static java.lang.String getCharset(java.lang.String contentType)