org.apache.http.impl.nio
Class DefaultNHttpClientConnection
java.lang.Object
org.apache.http.impl.nio.NHttpConnectionBase
org.apache.http.impl.nio.DefaultNHttpClientConnection
- All Implemented Interfaces:
- org.apache.http.HttpConnection, org.apache.http.HttpInetConnection, IOControl, NHttpClientConnection, NHttpConnection, SessionBufferStatus
- public class DefaultNHttpClientConnection
- extends NHttpConnectionBase
- implements NHttpClientConnection
Fields inherited from class org.apache.http.impl.nio.NHttpConnectionBase |
closed, contentDecoder, contentEncoder, context, hasBufferedInput, hasBufferedOutput, inbuf, incomingContentStrategy, lineBuffer, outbuf, outgoingContentStrategy, request, response, session |
Methods inherited from class org.apache.http.impl.nio.NHttpConnectionBase |
assertNotClosed, close, getContext, getHttpRequest, getHttpResponse, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSocketTimeout, hasBufferedInput, hasBufferedOutput, isOpen, isStale, prepareDecoder, prepareEncoder, requestInput, requestOutput, setSocketTimeout, shutdown, suspendInput, suspendOutput |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.http.HttpConnection |
close, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown |
DefaultNHttpClientConnection
public DefaultNHttpClientConnection(IOSession session,
org.apache.http.HttpResponseFactory responseFactory,
org.apache.http.params.HttpParams params)
consumeInput
public void consumeInput(NHttpClientHandler handler)
produceOutput
public void produceOutput(NHttpClientHandler handler)
submitRequest
public void submitRequest(org.apache.http.HttpRequest request)
throws org.apache.http.HttpException
- Description copied from interface:
NHttpClientConnection
- Submits the HTTP request to the target server.
- Specified by:
submitRequest
in interface NHttpClientConnection
- Parameters:
request
- HTTP request
- Throws:
org.apache.http.HttpException
- if the HTTP request violates the HTTP protocol.
isRequestSubmitted
public boolean isRequestSubmitted()
- Description copied from interface:
NHttpClientConnection
- Returns true if an HTTP request has been submitted to the
target server.
- Specified by:
isRequestSubmitted
in interface NHttpClientConnection
- Returns:
- true if an HTTP request has been submitted,
false otherwise.
cancelRequest
public void cancelRequest()
- Description copied from interface:
NHttpClientConnection
- Cancels pending HTTP request if it failed the target server expections
(the target server responded with non 1xx status code during the
'expect: continue' handshake.
- Specified by:
cancelRequest
in interface NHttpClientConnection
toString
public java.lang.String toString()
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.