org.jacorb.orb.http
Class ClientConnection

java.lang.Object
  extended byorg.jacorb.orb.giop.ClientConnection
      extended byorg.jacorb.orb.http.ClientConnection
All Implemented Interfaces:
ConnectionListener, ReplyListener

public final class ClientConnection
extends ClientConnection

This class tunnels a GIOP request in HTTP.

Version:
$Id: ClientConnection.java,v 1.13 2003/08/15 11:11:50 andre.spiegel Exp $
Author:
Sebastian Mueller

Constructor Summary
ClientConnection(java.lang.String _host, int _port, SocketFactory factory, ORB orb)
           
 
Method Summary
protected  void abort()
           
 void closeConnection()
           
 boolean connected()
           
 java.util.Hashtable get_buffers()
           
 java.util.Hashtable get_replies()
           
 byte[] readBuffer()
           
 void reconnect()
           
 LocateReplyInputStream sendLocateRequest(LocateRequestOutputStream os)
           
 InputStream sendRequest(Object o, RequestOutputStream os)
          writes the arguments of method calls to the output stream
 void setTimeOut(int timeout)
           
 void writeDirectly(byte[] data, int len)
           
 
Methods inherited from class org.jacorb.orb.giop.ClientConnection
cacheSASContext, close, closeConnectionReceived, connectionClosed, decClients, get_server_profile, getGIOPConnection, getId, getInfo, getRegisteredProfile, getTCS, getTCSW, incClients, isClientInitiated, isTCSNegotiated, locateReplyReceived, purgeSASContext, replyReceived, sendRequest, sendRequest, setCodeSet, streamClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientConnection

public ClientConnection(java.lang.String _host,
                        int _port,
                        SocketFactory factory,
                        ORB orb)
Method Detail

abort

protected void abort()
              throws java.io.EOFException
Throws:
java.io.EOFException

closeConnection

public void closeConnection()

connected

public boolean connected()

get_buffers

public java.util.Hashtable get_buffers()

get_replies

public java.util.Hashtable get_replies()

readBuffer

public byte[] readBuffer()
                  throws java.io.IOException
Throws:
java.io.IOException

reconnect

public void reconnect()
               throws COMM_FAILURE
Throws:
COMM_FAILURE

sendLocateRequest

public LocateReplyInputStream sendLocateRequest(LocateRequestOutputStream os)
                                         throws COMM_FAILURE
Throws:
COMM_FAILURE

sendRequest

public InputStream sendRequest(Object o,
                               RequestOutputStream os)
                        throws COMM_FAILURE
writes the arguments of method calls to the output stream

Throws:
COMM_FAILURE

setTimeOut

public void setTimeOut(int timeout)
                throws java.net.SocketException
Throws:
java.net.SocketException

writeDirectly

public void writeDirectly(byte[] data,
                          int len)
                   throws java.io.IOException
Throws:
java.io.IOException