|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.noelios.restlet.http.HttpCall
com.noelios.restlet.http.HttpClientCall
com.noelios.restlet.http.StreamClientCall
public class StreamClientCall
HTTP client call based on streams.
Constructor Summary | |
---|---|
StreamClientCall(StreamClientHelper helper,
Request request)
Constructor. |
Method Summary | |
---|---|
Socket |
createSocket(String hostDomain,
int hostPort)
Creates the socket that will be used to send the request and get the response. |
Request |
getRequest()
Returns the request to send. |
WritableByteChannel |
getRequestChannel()
Returns the request entity channel if it exists. |
OutputStream |
getRequestStream()
Returns the request entity stream if it exists. |
ReadableByteChannel |
getResponseChannel()
Returns the response channel if it exists. |
InputStream |
getResponseStream()
Returns the response stream if it exists. |
protected void |
parseResponse()
Parses the HTTP response. |
Status |
sendRequest(Request request)
Sends the request to the client. |
Methods inherited from class com.noelios.restlet.http.HttpClientCall |
---|
getHelper, getLocalAddress, getResponseEntity |
Methods inherited from class com.noelios.restlet.http.HttpCall |
---|
formatDate, getClientAddress, getClientPort, getConnectorService, getHostDomain, getHostPort, getLogger, getMethod, getProtocol, getReasonPhrase, getRequestHeaders, getRequestUri, getResponseHeaders, getServerAddress, getServerPort, getStatusCode, getVersion, isConfidential, parseDate, setClientAddress, setClientPort, setConfidential, setHostDomain, setHostPort, setLogger, setMethod, setProtocol, setReasonPhrase, setRequestUri, setServerAddress, setServerPort, setStatusCode, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamClientCall(StreamClientHelper helper, Request request)
helper
- The client connector helper.request
- The request to send.Method Detail |
---|
public Socket createSocket(String hostDomain, int hostPort) throws UnknownHostException, IOException
hostDomain
- The target host domain name.hostPort
- The target host port.
UnknownHostException
IOException
public Request getRequest()
public WritableByteChannel getRequestChannel()
HttpClientCall
getRequestChannel
in class HttpClientCall
public OutputStream getRequestStream()
HttpClientCall
getRequestStream
in class HttpClientCall
public ReadableByteChannel getResponseChannel()
HttpClientCall
getResponseChannel
in class HttpClientCall
public InputStream getResponseStream()
HttpClientCall
getResponseStream
in class HttpClientCall
protected void parseResponse() throws IOException
IOException
public Status sendRequest(Request request)
HttpClientCall
sendRequest
in class HttpClientCall
request
- The high-level request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |