public class AJP13Connection extends HttpConnection
_dotVersion, _keepAlive, _persistent, _request, _response
__CLOSED, __CLOSING, __COMMITING, __FIRST_WRITE, __RESET_BUFFER
Constructor and Description |
---|
AJP13Connection(AJP13Listener listener,
InputStream in,
OutputStream out,
Socket socket,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
commit() |
void |
destroy()
Destroy the connection.
|
protected void |
firstWrite()
Setup the reponse output stream.
|
String |
getDefaultScheme()
Get the listeners Default scheme.
|
String |
getRemoteAddr()
Get the Remote address.
|
String |
getRemoteHost()
Get the Remote address.
|
InetAddress |
getRemoteInetAddress()
Get the Remote address.
|
String |
getServerName()
Get the listeners HttpServer .
|
int |
getServerPort()
Get the listeners Port .
|
boolean |
handleNext()
Handle next request off the connection.
|
boolean |
isSSL() |
protected void |
setupOutputStream() |
associateThread, close, disassociateThread, forceClose, getConnection, getHttpServer, getHttpTunnel, getInputStream, getListener, getObject, getOutputStream, getRemotePort, getRequest, getResponse, getServerAddr, handle, isThrottled, outputNotify, readRequest, recycle, service, setHttpTunnel, setObject, setThrottled, statsRequestEnd, statsRequestStart
public AJP13Connection(AJP13Listener listener, InputStream in, OutputStream out, Socket socket, int bufferSize) throws IOException
IOException
public InetAddress getRemoteInetAddress()
getRemoteInetAddress
in class HttpConnection
public void destroy()
HttpConnection
destroy
in class HttpConnection
public String getRemoteAddr()
getRemoteAddr
in class HttpConnection
public String getRemoteHost()
getRemoteHost
in class HttpConnection
public String getServerName()
getServerName
in class HttpConnection
public int getServerPort()
getServerPort
in class HttpConnection
public String getDefaultScheme()
getDefaultScheme
in class HttpConnection
public boolean isSSL()
public boolean handleNext()
HttpConnection
If a HttpTunnel has been set on this connection, it's handle method is called and when that completes, false is return from this method.
The Connection is set as a ThreadLocal of the calling thread and is available via the getHttpConnection() method.
handleNext
in class HttpConnection
protected void firstWrite() throws IOException
HttpConnection
firstWrite
in class HttpConnection
IOException
protected void commit() throws IOException
commit
in class HttpConnection
IOException
protected void setupOutputStream() throws IOException
IOException
Copyright © 2013. All rights reserved.