Constructor and Description |
---|
Request(HTTPConnection con,
String method,
String req_uri,
NVPair[] headers,
byte[] data,
HttpOutputStream stream,
boolean allow_ui)
Creates a new request structure.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowUI() |
Object |
clone() |
void |
copyFrom(Request other)
Copy all the fields from other to this request.
|
HTTPConnection |
getConnection() |
byte[] |
getData() |
NVPair[] |
getHeaders() |
String |
getMethod() |
String |
getRequestURI() |
HttpOutputStream |
getStream() |
void |
setAllowUI(boolean allow_ui) |
void |
setConnection(HTTPConnection con) |
void |
setData(byte[] data) |
void |
setHeaders(NVPair[] headers) |
void |
setMethod(String method) |
void |
setRequestURI(String req_uri) |
void |
setStream(HttpOutputStream stream) |
String |
toString() |
public Request(HTTPConnection con, String method, 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 interactionpublic HTTPConnection getConnection()
getConnection
in interface RoRequest
public void setConnection(HTTPConnection con)
con
- the HTTPConnection this request is associated withpublic String getMethod()
public void setMethod(String method)
method
- the request method (e.g. GET, POST, etc)public String getRequestURI()
getRequestURI
in interface RoRequest
public void setRequestURI(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()
public void setData(byte[] data)
data
- the entity for this requestpublic HttpOutputStream getStream()
public void setStream(HttpOutputStream stream)
stream
- an output stream on which the entity is writtenpublic boolean allowUI()
public void setAllowUI(boolean allow_ui)
allow_ui
- are modules and handlers allowed to popup windows or
otherwise interact with the user?public void copyFrom(Request other)
other
- the Request to copy fromCopyright © 2000-2014. All Rights Reserved.