| java.lang.Object HTTPClient.Request
Request | final public class Request implements RoRequest(Code) | | This class represents an http request. It's used by classes which
implement the HTTPClientModule interface.
version: 0.3-2E 16/06/2000 author: Ronald Tschalär |
aborted | boolean aborted(Code) | | was this request aborted by the user?
|
delay_entity | long delay_entity(Code) | | number of millisecs to wait for an error from the server before sending
the entity (used when retrying requests)
|
dont_pipeline | boolean dont_pipeline(Code) | | disable pipelining of following request
|
internal_subrequest | boolean internal_subrequest(Code) | | is this an internally generated subrequest?
|
num_retries | int num_retries(Code) | | number of retries so far
|
Request | public Request(HTTPConnection con, String method, String req_uri, NVPair[] headers, byte[] data, HttpOutputStream stream, boolean allow_ui)(Code) | | Creates a new request structure.
Parameters: con - the current HTTPConnection Parameters: method - the request method Parameters: req_uri - the request-uri Parameters: headers - the request headers Parameters: data - the entity as a byte[] Parameters: stream - the entity as a stream Parameters: allow_ui - allow user interaction |
allowUI | public boolean allowUI()(Code) | | true if the modules or handlers for this request may popupwindows or otherwise interact with the user |
getConnection | public HTTPConnection getConnection()(Code) | | the HTTPConnection this request is associated with |
getData | public byte[] getData()(Code) | | the body of this request |
getHeaders | public NVPair[] getHeaders()(Code) | | the headers making up this request |
getRequestURI | public String getRequestURI()(Code) | | the request-uri |
setAllowUI | public void setAllowUI(boolean allow_ui)(Code) | | Parameters: allow_ui - are modules and handlers allowed to popup windows orotherwise interact with the user? |
setConnection | public void setConnection(HTTPConnection con)(Code) | | Parameters: con - the HTTPConnection this request is associated with |
setData | public void setData(byte[] data)(Code) | | Parameters: data - the entity for this request |
setHeaders | public void setHeaders(NVPair[] headers)(Code) | | Parameters: headers - the headers for this request |
setMethod | public void setMethod(String method)(Code) | | Parameters: method - the request method (e.g. GET, POST, etc) |
setRequestURI | public void setRequestURI(String req_uri)(Code) | | Parameters: req_uri - the request-uri |
setStream | public void setStream(HttpOutputStream stream)(Code) | | Parameters: stream - an output stream on which the entity is written |
toString | public String toString()(Code) | | a string containing the method and request-uri |
|
|