|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.http.data.util.HTTPBindingUtil
public class HTTPBindingUtil
An utility class to help in interacting with HTTP Data Binding APIs.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Constructor Summary | |
---|---|
HTTPBindingUtil()
|
Method Summary | |
---|---|
static boolean |
containsHeader(java.lang.String name,
HTTPHeaders headers)
Returns a boolean indicating whether the named http header has already been set. |
static java.lang.String |
getHeader(java.lang.String name,
HTTPHeaders headers)
Returns the value of the specified http header as a String. |
static void |
removeHeader(java.lang.String name,
HTTPHeaders headers)
Removes all headers with the specified name(case-insensitive). |
static void |
setHeader(java.lang.String name,
java.lang.String value,
HTTPHeaders headers)
Sets a http header with the given name and value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public HTTPBindingUtil()
Method Detail |
---|
public static boolean containsHeader(java.lang.String name, HTTPHeaders headers)
name
- the name of http header (case-insensitive)headers
- the header container
java.lang.IllegalArgumentException
- if name or headers is nullpublic static void setHeader(java.lang.String name, java.lang.String value, HTTPHeaders headers)
containsHeader
method
can be used to test for the presence of a header before setting its value.
name
- the name of the header (case-insensitive)value
- the header valueheaders
- the header container.
java.lang.IllegalArgumentException
- if header name or headers is null.public static java.lang.String getHeader(java.lang.String name, HTTPHeaders headers)
name
- the http header name (case-insensitive)headers
- http header container
java.lang.IllegalArgumentException
- if name or headers are nullpublic static void removeHeader(java.lang.String name, HTTPHeaders headers)
name
- http header name (case-insensitive)headers
- http header container
java.lang.IllegalArgumentException
- if name or headers is null
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |