public class AxisHttpConnectionImpl extends Object implements AxisHttpConnection
Constructor and Description |
---|
AxisHttpConnectionImpl(Socket socket,
org.apache.http.params.HttpParams params) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
InputStream |
getInputStream() |
InetAddress |
getLocalAddress() |
int |
getLocalPort() |
org.apache.http.HttpConnectionMetrics |
getMetrics() |
OutputStream |
getOutputStream() |
InetAddress |
getRemoteAddress() |
int |
getRemotePort() |
int |
getSocketTimeout() |
boolean |
isOpen() |
boolean |
isStale() |
org.apache.http.HttpRequest |
receiveRequest() |
void |
reset() |
void |
sendResponse(org.apache.http.HttpResponse response) |
void |
setSocketTimeout(int timeout) |
void |
shutdown() |
String |
toString() |
public AxisHttpConnectionImpl(Socket socket, org.apache.http.params.HttpParams params) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.http.HttpConnection
IOException
public boolean isOpen()
isOpen
in interface org.apache.http.HttpConnection
public boolean isStale()
isStale
in interface org.apache.http.HttpConnection
public void shutdown() throws IOException
shutdown
in interface org.apache.http.HttpConnection
IOException
public org.apache.http.HttpRequest receiveRequest() throws org.apache.http.HttpException, IOException
receiveRequest
in interface AxisHttpConnection
org.apache.http.HttpException
IOException
public void sendResponse(org.apache.http.HttpResponse response) throws org.apache.http.HttpException, IOException
sendResponse
in interface AxisHttpConnection
org.apache.http.HttpException
IOException
public InputStream getInputStream()
getInputStream
in interface AxisHttpConnection
public OutputStream getOutputStream()
getOutputStream
in interface AxisHttpConnection
public void flush() throws IOException
flush
in interface AxisHttpConnection
IOException
public void reset() throws IOException
reset
in interface AxisHttpConnection
IOException
public int getSocketTimeout()
getSocketTimeout
in interface org.apache.http.HttpConnection
public void setSocketTimeout(int timeout)
setSocketTimeout
in interface org.apache.http.HttpConnection
public InetAddress getLocalAddress()
getLocalAddress
in interface org.apache.http.HttpInetConnection
public int getLocalPort()
getLocalPort
in interface org.apache.http.HttpInetConnection
public InetAddress getRemoteAddress()
getRemoteAddress
in interface org.apache.http.HttpInetConnection
public int getRemotePort()
getRemotePort
in interface org.apache.http.HttpInetConnection
public org.apache.http.HttpConnectionMetrics getMetrics()
getMetrics
in interface org.apache.http.HttpConnection
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.