org.jacorb.orb.http

Class ClientConnection

Implemented Interfaces:
ConnectionListener, ReplyListener

public final class ClientConnection
extends ClientConnection

This class tunnels a GIOP request in HTTP.

Version:
$Id: ClientConnection.java,v 1.14 2004/05/06 12:40:00 nicolas Exp $

Author:
Sebastian Mueller

Constructor Summary

ClientConnection(String _host, int _port, SocketFactory factory, ORB orb)

Method Summary

protected void
abort()
void
closeConnection()
boolean
connected()
Hashtable
get_buffers()
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, getGIOPConnection, getId, getInfo, getRegisteredProfile, getTCS, getTCSW, get_server_profile, incClients, isClientInitiated, isTCSNegotiated, locateReplyReceived, purgeSASContext, replyReceived, sendRequest, sendRequest, setCodeSet, streamClosed

Constructor Details

ClientConnection

public ClientConnection(String _host,
                        int _port,
                        SocketFactory factory,
                        ORB orb)

Method Details

abort

protected void abort()
            throws java.io.EOFException


closeConnection

public void closeConnection()


connected

public boolean connected()


get_buffers

public Hashtable get_buffers()


get_replies

public Hashtable get_replies()


readBuffer

public byte[] readBuffer()
            throws IOException


reconnect

public void reconnect()
            throws COMM_FAILURE


sendLocateRequest

public LocateReplyInputStream sendLocateRequest(LocateRequestOutputStream os)
            throws COMM_FAILURE


sendRequest

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


setTimeOut

public void setTimeOut(int timeout)
            throws SocketException


writeDirectly

public void writeDirectly(byte[] data,
                          int len)
            throws IOException