Class AxisHttpConnectionImpl
- java.lang.Object
-
- org.apache.axis2.transport.http.server.AxisHttpConnectionImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AxisHttpConnection
,org.apache.http.HttpConnection
,org.apache.http.HttpInetConnection
public class AxisHttpConnectionImpl extends Object implements AxisHttpConnection
-
-
Constructor Summary
Constructors Constructor Description AxisHttpConnectionImpl(Socket socket, org.apache.http.params.HttpParams params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
AxisHttpConnectionImpl
public AxisHttpConnectionImpl(Socket socket, org.apache.http.params.HttpParams params) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.http.HttpConnection
- Throws:
IOException
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interfaceorg.apache.http.HttpConnection
-
isStale
public boolean isStale()
- Specified by:
isStale
in interfaceorg.apache.http.HttpConnection
-
shutdown
public void shutdown() throws IOException
- Specified by:
shutdown
in interfaceorg.apache.http.HttpConnection
- Throws:
IOException
-
receiveRequest
public org.apache.http.HttpRequest receiveRequest() throws org.apache.http.HttpException, IOException
- Specified by:
receiveRequest
in interfaceAxisHttpConnection
- Throws:
org.apache.http.HttpException
IOException
-
sendResponse
public void sendResponse(org.apache.http.HttpResponse response) throws org.apache.http.HttpException, IOException
- Specified by:
sendResponse
in interfaceAxisHttpConnection
- Throws:
org.apache.http.HttpException
IOException
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream
in interfaceAxisHttpConnection
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream
in interfaceAxisHttpConnection
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceAxisHttpConnection
- Throws:
IOException
-
reset
public void reset() throws IOException
- Specified by:
reset
in interfaceAxisHttpConnection
- Throws:
IOException
-
getSocketTimeout
public int getSocketTimeout()
- Specified by:
getSocketTimeout
in interfaceorg.apache.http.HttpConnection
-
setSocketTimeout
public void setSocketTimeout(int timeout)
- Specified by:
setSocketTimeout
in interfaceorg.apache.http.HttpConnection
-
getLocalAddress
public InetAddress getLocalAddress()
- Specified by:
getLocalAddress
in interfaceorg.apache.http.HttpInetConnection
-
getLocalPort
public int getLocalPort()
- Specified by:
getLocalPort
in interfaceorg.apache.http.HttpInetConnection
-
getRemoteAddress
public InetAddress getRemoteAddress()
- Specified by:
getRemoteAddress
in interfaceorg.apache.http.HttpInetConnection
-
getRemotePort
public int getRemotePort()
- Specified by:
getRemotePort
in interfaceorg.apache.http.HttpInetConnection
-
getMetrics
public org.apache.http.HttpConnectionMetrics getMetrics()
- Specified by:
getMetrics
in interfaceorg.apache.http.HttpConnection
-
-