org.apache.axis2.transport.http.server
Class AxisHttpConnectionImpl

java.lang.Object
  extended by org.apache.axis2.transport.http.server.AxisHttpConnectionImpl
All Implemented Interfaces:
AxisHttpConnection, org.apache.http.HttpConnection, org.apache.http.HttpInetConnection

public class AxisHttpConnectionImpl
extends java.lang.Object
implements AxisHttpConnection


Constructor Summary
AxisHttpConnectionImpl(java.net.Socket socket, org.apache.http.params.HttpParams params)
           
 
Method Summary
 void close()
           
 void flush()
           
 java.io.InputStream getInputStream()
           
 java.net.InetAddress getLocalAddress()
           
 int getLocalPort()
           
 org.apache.http.HttpConnectionMetrics getMetrics()
           
 java.io.OutputStream getOutputStream()
           
 java.net.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()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AxisHttpConnectionImpl

public AxisHttpConnectionImpl(java.net.Socket socket,
                              org.apache.http.params.HttpParams params)
                       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface org.apache.http.HttpConnection
Throws:
java.io.IOException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface org.apache.http.HttpConnection

isStale

public boolean isStale()
Specified by:
isStale in interface org.apache.http.HttpConnection

shutdown

public void shutdown()
              throws java.io.IOException
Specified by:
shutdown in interface org.apache.http.HttpConnection
Throws:
java.io.IOException

receiveRequest

public org.apache.http.HttpRequest receiveRequest()
                                           throws org.apache.http.HttpException,
                                                  java.io.IOException
Specified by:
receiveRequest in interface AxisHttpConnection
Throws:
org.apache.http.HttpException
java.io.IOException

sendResponse

public void sendResponse(org.apache.http.HttpResponse response)
                  throws org.apache.http.HttpException,
                         java.io.IOException
Specified by:
sendResponse in interface AxisHttpConnection
Throws:
org.apache.http.HttpException
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in interface AxisHttpConnection

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in interface AxisHttpConnection

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface AxisHttpConnection
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Specified by:
reset in interface AxisHttpConnection
Throws:
java.io.IOException

getSocketTimeout

public int getSocketTimeout()
Specified by:
getSocketTimeout in interface org.apache.http.HttpConnection

setSocketTimeout

public void setSocketTimeout(int timeout)
Specified by:
setSocketTimeout in interface org.apache.http.HttpConnection

getLocalAddress

public java.net.InetAddress getLocalAddress()
Specified by:
getLocalAddress in interface org.apache.http.HttpInetConnection

getLocalPort

public int getLocalPort()
Specified by:
getLocalPort in interface org.apache.http.HttpInetConnection

getRemoteAddress

public java.net.InetAddress getRemoteAddress()
Specified by:
getRemoteAddress in interface org.apache.http.HttpInetConnection

getRemotePort

public int getRemotePort()
Specified by:
getRemotePort in interface org.apache.http.HttpInetConnection

getMetrics

public org.apache.http.HttpConnectionMetrics getMetrics()
Specified by:
getMetrics in interface org.apache.http.HttpConnection

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 Apache Web Services Project. All Rights Reserved.