|
Oracle Application Server HTTPClient API Reference 10g Release 2 (10.1.2) B14020-02 |
|||||||||
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 interactionMethod Detail |
public HTTPConnection getConnection()
getConnection
in interface RoRequest
public void setConnection(HTTPConnection con)
con
- the HTTPConnection this request is associated withpublic java.lang.String getMethod()
getMethod
in interface RoRequest
public void setMethod(java.lang.String method)
method
- the request method (e.g. GET, POST, etc)public java.lang.String getRequestURI()
getRequestURI
in interface RoRequest
public void setRequestURI(java.lang.String req_uri)
req_uri
- the request-uripublic NVPair[] getHeaders()
getHeaders
in interface RoRequest
public void setHeaders(NVPair[] headers)
headers
- the headers for this requestpublic byte[] getData()
getData
in interface RoRequest
public void setData(byte[] data)
data
- the entity for this requestpublic HttpOutputStream getStream()
getStream
in interface RoRequest
public void setStream(HttpOutputStream stream)
stream
- an output stream on which the entity is writtenpublic boolean allowUI()
allowUI
in interface RoRequest
public 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 API Reference 10g Release 2 (10.1.2) B14020-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |