|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.wbi.protocol.http.HttpBase
HttpRequestHeader, HttpResponseHeader,
HttpHeaderAscii).
This abstract class is the base class for HTTP 1.0 requests/responses.
HttpHeaderAscii,
HttpRequestHeader,
HttpResponseHeader| Field Summary | |
protected java.lang.String |
content
Deprecated. |
static java.lang.String |
COPYRIGHT
Deprecated. |
protected HttpHeaderAscii |
header
Deprecated. |
| Constructor Summary | |
protected |
HttpBase()
Deprecated. Default constructor. |
| Method Summary | |
void |
add(java.lang.String key,
java.lang.String value)
Deprecated. Add an arbitrary key/value pair to the header. |
boolean |
change(java.lang.String key,
java.lang.String oldValue,
java.lang.String newValue)
Deprecated. Change an arbitrary header field. |
java.lang.String |
get(java.lang.String key)
Deprecated. Access the value of a header field. |
java.util.Vector |
getAll(java.lang.String key)
Deprecated. Access all values from the header fields that correspond The search for the a value is case insensitive. |
java.lang.String |
getContent()
Deprecated. Access the HTTP request/response content. |
long |
getContentLength()
Deprecated. Access the HTTP request content length. |
java.lang.String |
getContentType()
Deprecated. Access the HTTP content type. |
java.util.Enumeration |
getKeys()
Deprecated. Retrieve an enumeration of the keys of all header fields in this Http request/response. |
java.lang.String |
getProtocolVersion()
Deprecated. Access the HTTP protocol version. |
protected void |
initialize()
Deprecated. Initialize the header field list and access objects. |
boolean |
remove(java.lang.String key)
Deprecated. Remove a header field specified by its name. |
boolean |
remove(java.lang.String key,
java.lang.String value)
Deprecated. Remove the first header field that matches the specified key/value pair. |
boolean |
removeAll(java.lang.String key)
Deprecated. Remove header fields specified by name. |
void |
set(java.lang.String key,
java.lang.String value)
Deprecated. Set an arbitrary key/value pair for the header. |
void |
setContent(java.lang.String c)
Deprecated. Set the request content. |
void |
setContentLength(long cl)
Deprecated. Set the content length. |
void |
setContentType(java.lang.String ct)
Deprecated. Set the content type. |
void |
setProtocolVersion(java.lang.String pv)
Deprecated. Set the HTTP protocol version. |
| 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
protected HttpHeaderAscii header
protected java.lang.String content
| Constructor Detail |
protected HttpBase()
| Method Detail |
protected void initialize()
public void setProtocolVersion(java.lang.String pv)
pv - The protocol version (e.g. "HTTP/1.0")public void setContent(java.lang.String c)
c - The content of the request (i.e. the form information that
goes along with a "POST" request)public void setContentLength(long cl)
cl - The content length.public void setContentType(java.lang.String ct)
ct - The content type.public java.lang.String getProtocolVersion()
public java.lang.String getContentType()
public long getContentLength()
public java.lang.String getContent()
public void add(java.lang.String key,
java.lang.String value)
key - The header field (e.g. "content-type")value - The header value (e.g. "text/html")
public void set(java.lang.String key,
java.lang.String value)
key - The header field (e.g. "content-type")value - The header value (e.g. "text/html")public java.util.Enumeration getKeys()
public java.lang.String get(java.lang.String key)
key - The key to retrieve the value. (e.g. "content-type")public java.util.Vector getAll(java.lang.String key)
key - The key to retrieve the value. (e.g. "content-type")public boolean remove(java.lang.String key)
key - The key of the header field to be
removed. (e.g. "content-type")
public boolean remove(java.lang.String key,
java.lang.String value)
key - The key of the header field to be
removed. (e.g. "content-type")key - The value of the header field to be
removed. (e.g. "text/html")public boolean removeAll(java.lang.String key)
key - The key of the header fields to be
removed. (e.g. "content-type")
public boolean change(java.lang.String key,
java.lang.String oldValue,
java.lang.String newValue)
key - Key of the header field.olValue - Old values of the header fields. Needs to be
matched case sensitive.newValue - String to replace the old value if a matching
header field was found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||