|
Oracle Application Server HTTPClient Java API Reference 10g Release 3 (10.1.3.1.0) B32117-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
HTTPClient.Request
This class represents an http request. It's used by classes which implement the HTTPClientModule interface.
| Constructor Summary | |
Request(HTTPConnection con, java.lang.String method, java.lang.String req_uri, NVPair[] headers, byte[] data, HttpOutputStream stream, boolean allow_ui)Creates a new request structure. |
|
| Method Summary | |
boolean |
allowUI() |
java.lang.Object |
clone() |
void |
copyFrom(Request other)Copy all the fields from other to this request. |
HTTPConnection |
getConnection() |
byte[] |
getData() |
NVPair[] |
getHeaders() |
java.lang.String |
getMethod() |
java.lang.String |
getRequestURI() |
HttpOutputStream |
getStream() |
void |
setAllowUI(boolean allow_ui) |
void |
setConnection(HTTPConnection con) |
void |
setData(byte[] data) |
void |
setHeaders(NVPair[] headers) |
void |
setMethod(java.lang.String method) |
void |
setRequestURI(java.lang.String req_uri) |
void |
setStream(HttpOutputStream stream) |
java.lang.String |
toString() |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Request(HTTPConnection con,
java.lang.String method,
java.lang.String req_uri,
NVPair[] headers,
byte[] data,
HttpOutputStream stream,
boolean allow_ui)
con - the current HTTPConnectionmethod - the request methodreq_uri - the request-uriheaders - the request headersdata - the entity as a byte[]stream - the entity as a streamallow_ui - allow user interaction| Method Detail |
public HTTPConnection getConnection()
getConnection in interface RoRequestpublic void setConnection(HTTPConnection con)
con - the HTTPConnection this request is associated withpublic java.lang.String getMethod()
getMethod in interface RoRequestpublic void setMethod(java.lang.String method)
method - the request method (e.g. GET, POST, etc)public java.lang.String getRequestURI()
getRequestURI in interface RoRequestpublic void setRequestURI(java.lang.String req_uri)
req_uri - the request-uripublic NVPair[] getHeaders()
getHeaders in interface RoRequestpublic void setHeaders(NVPair[] headers)
headers - the headers for this requestpublic byte[] getData()
getData in interface RoRequestpublic void setData(byte[] data)
data - the entity for this requestpublic HttpOutputStream getStream()
getStream in interface RoRequestpublic void setStream(HttpOutputStream stream)
stream - an output stream on which the entity is writtenpublic boolean allowUI()
allowUI in interface RoRequestpublic void setAllowUI(boolean allow_ui)
allow_ui - are modules and handlers allowed to popup windows or otherwise interact with the user?public java.lang.Object clone()
public void copyFrom(Request other)
other - the Request to copy frompublic java.lang.String toString()
|
Oracle Application Server HTTPClient Java API Reference 10g Release 3 (10.1.3.1.0) B32117-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||