|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.nio.NHttpConnectionBase
Field Summary | |
protected boolean |
closed
|
protected ContentDecoder |
contentDecoder
|
protected ContentEncoder |
contentEncoder
|
protected org.apache.http.protocol.HttpContext |
context
|
protected boolean |
hasBufferedInput
|
protected boolean |
hasBufferedOutput
|
protected SessionInputBuffer |
inbuf
|
protected org.apache.http.entity.ContentLengthStrategy |
incomingContentStrategy
|
protected org.apache.http.util.CharArrayBuffer |
lineBuffer
|
protected SessionOutputBuffer |
outbuf
|
protected org.apache.http.entity.ContentLengthStrategy |
outgoingContentStrategy
|
protected org.apache.http.HttpRequest |
request
|
protected org.apache.http.HttpResponse |
response
|
protected IOSession |
session
|
Constructor Summary | |
NHttpConnectionBase(IOSession session,
org.apache.http.params.HttpParams params)
|
Method Summary | |
protected void |
assertNotClosed()
|
void |
close()
|
org.apache.http.protocol.HttpContext |
getContext()
Returns an HTTP execution context associated with this connection. |
org.apache.http.HttpRequest |
getHttpRequest()
Returns the current HTTP request if one is being received / transmitted. |
org.apache.http.HttpResponse |
getHttpResponse()
Returns the current HTTP response if one is being received / transmitted. |
java.net.InetAddress |
getLocalAddress()
|
int |
getLocalPort()
|
java.net.InetAddress |
getRemoteAddress()
|
int |
getRemotePort()
|
int |
getSocketTimeout()
|
boolean |
hasBufferedInput()
|
boolean |
hasBufferedOutput()
|
boolean |
isOpen()
|
boolean |
isStale()
|
protected org.apache.http.HttpEntity |
prepareDecoder(org.apache.http.HttpMessage message)
|
protected void |
prepareEncoder(org.apache.http.HttpMessage message)
|
void |
requestInput()
Requests event notifications to be triggered when the underlying channel is ready for input oprtations. |
void |
requestOutput()
Requests event notifications to be triggered when the underlying channel is ready for output oprtations. |
void |
setSocketTimeout(int timeout)
|
void |
shutdown()
|
void |
suspendInput()
Suspends event notifications about the underlying channel being ready for input operations. |
void |
suspendOutput()
Suspends event notifications about the underlying channel being ready for output operations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final IOSession session
protected final org.apache.http.protocol.HttpContext context
protected final org.apache.http.entity.ContentLengthStrategy incomingContentStrategy
protected final org.apache.http.entity.ContentLengthStrategy outgoingContentStrategy
protected final SessionInputBuffer inbuf
protected final SessionOutputBuffer outbuf
protected final org.apache.http.util.CharArrayBuffer lineBuffer
protected volatile ContentDecoder contentDecoder
protected volatile boolean hasBufferedInput
protected volatile ContentEncoder contentEncoder
protected volatile boolean hasBufferedOutput
protected volatile org.apache.http.HttpRequest request
protected volatile org.apache.http.HttpResponse response
protected volatile boolean closed
Constructor Detail |
public NHttpConnectionBase(IOSession session, org.apache.http.params.HttpParams params)
Method Detail |
public org.apache.http.protocol.HttpContext getContext()
NHttpConnection
getContext
in interface NHttpConnection
public org.apache.http.HttpRequest getHttpRequest()
NHttpConnection
getHttpRequest
in interface NHttpConnection
public org.apache.http.HttpResponse getHttpResponse()
NHttpConnection
getHttpResponse
in interface NHttpConnection
public void requestInput()
IOControl
requestInput
in interface IOControl
public void requestOutput()
IOControl
requestOutput
in interface IOControl
public void suspendInput()
IOControl
suspendInput
in interface IOControl
public void suspendOutput()
IOControl
suspendOutput
in interface IOControl
protected org.apache.http.HttpEntity prepareDecoder(org.apache.http.HttpMessage message) throws org.apache.http.HttpException
org.apache.http.HttpException
protected void prepareEncoder(org.apache.http.HttpMessage message) throws org.apache.http.HttpException
org.apache.http.HttpException
public boolean hasBufferedInput()
hasBufferedInput
in interface SessionBufferStatus
public boolean hasBufferedOutput()
hasBufferedOutput
in interface SessionBufferStatus
protected void assertNotClosed()
public void close() throws java.io.IOException
close
in interface org.apache.http.HttpConnection
java.io.IOException
public boolean isOpen()
isOpen
in interface org.apache.http.HttpConnection
public boolean isStale()
isStale
in interface org.apache.http.HttpConnection
public java.net.InetAddress getLocalAddress()
getLocalAddress
in interface org.apache.http.HttpInetConnection
public int getLocalPort()
getLocalPort
in interface org.apache.http.HttpInetConnection
public java.net.InetAddress getRemoteAddress()
getRemoteAddress
in interface org.apache.http.HttpInetConnection
public int getRemotePort()
getRemotePort
in interface org.apache.http.HttpInetConnection
public void setSocketTimeout(int timeout)
setSocketTimeout
in interface org.apache.http.HttpConnection
public int getSocketTimeout()
getSocketTimeout
in interface org.apache.http.HttpConnection
public void shutdown() throws java.io.IOException
shutdown
in interface org.apache.http.HttpConnection
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |