|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.ws.transport.http.HTTPTransportUtils
public class HTTPTransportUtils
Utilities for working with HTTP transports.
Constructor Summary | |
---|---|
protected |
HTTPTransportUtils()
Constructor. |
Method Summary | |
---|---|
static void |
addNoCacheHeaders(HTTPOutTransport transport)
Adds Cache-Control and Pragma headers meant to disable caching. |
static java.lang.String |
getRawQueryStringParameter(java.lang.String queryString,
java.lang.String paramName)
Get the first raw (i.e. |
static void |
setContentType(HTTPOutTransport transport,
java.lang.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 java.lang.String |
urlDecode(java.lang.String value)
URL Decode the given string. |
static java.lang.String |
urlEncode(java.lang.String value)
URL Encode the given string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HTTPTransportUtils()
Method Detail |
---|
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, java.lang.String contentType)
transport
- the transport to set content type oncontentType
- the content type to setpublic static java.lang.String urlDecode(java.lang.String value)
value
- the string to decode
public static java.lang.String urlEncode(java.lang.String value)
value
- the string to encode
public static java.lang.String getRawQueryStringParameter(java.lang.String queryString, java.lang.String paramName)
queryString
- the raw HTTP URL query stringparamName
- the name of the parameter to find
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |