public class HTTPTransportUtils extends Object
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
HTTPTransportUtils()
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static void |
addNoCacheHeaders(HTTPOutTransport transport)
Adds Cache-Control and Pragma headers meant to disable caching.
|
static String |
getRawQueryStringParameter(String queryString,
String paramName)
Get the first raw (i.e. non URL-decoded) query string component with the specified parameter name.
|
static void |
setContentType(HTTPOutTransport transport,
String contentType)
Sets the MIME content type of the transport.
|
static void |
setUTF8Encoding(HTTPOutTransport transport)
Sets the character encoding of the transport to UTF-8.
|
static String |
urlDecode(String value)
URL Decode the given string.
|
static String |
urlEncode(String value)
URL Encode the given string.
|
public static void addNoCacheHeaders(HTTPOutTransport transport)
transport - transport to add headers topublic static void setUTF8Encoding(HTTPOutTransport transport)
transport - transport to set character encoding typepublic static void setContentType(HTTPOutTransport transport, String contentType)
transport - the transport to set content type oncontentType - the content type to setpublic static String urlDecode(String value)
value - the string to decodepublic static String urlEncode(String value)
value - the string to encodepublic static String getRawQueryStringParameter(String queryString, String paramName)
queryString - the raw HTTP URL query stringparamName - the name of the parameter to findCopyright © 2012. All Rights Reserved.