org.jacorb.orb.giop

Class ClientConnection

public class ClientConnection extends Object implements ReplyListener, ConnectionListener

Version: $Id: ClientConnection.java,v 1.63 2006/07/26 11:05:21 nick.cross Exp $

Author: Nicolas Noffke

Constructor Summary
ClientConnection(GIOPConnection connection, ORB orb, ClientConnectionManager conn_mg, Profile registeredProfile, boolean client_initiated)
Method Summary
longcacheSASContext(byte[] client_authentication_token)
voidclose()
called from Delegate/ConnectionManagement etc.
voidcloseConnectionReceived(byte[] close_conn, GIOPConnection connection)
Received a CloseConnection message.
voidconnectionClosed()
Operations from ConnectionListener used for upcalls from GIOPConnection
booleandecClients()
This method decrements the number of clients.
GIOPConnectiongetGIOPConnection()
intgetId()
ProfilegetRegisteredProfile()
Get the profile that was used for registering with the ClientConnectionManager.
intgetTCS()
intgetTCSW()
Profileget_server_profile()
voidincClients()
Increments the number of clients.
booleanisClientInitiated()
booleanisTCSNegotiated()
voidlocateReplyReceived(byte[] reply, GIOPConnection connection)
intnumClients()
Returns the number of clients currently using this connection.
longpurgeSASContext(long client_context_id)
voidreplyReceived(byte[] reply, GIOPConnection connection)
Operations from ReplyListener
voidsendRequest(MessageOutputStream outputStream, ReplyPlaceholder placeholder, int request_id, boolean response_expected)
The request_id parameter is only used, if response_expected.
voidsendRequest(MessageOutputStream outputStream, boolean response_expected)
voidsetCodeSet(ParsedIOR pior)
voidstreamClosed()
the transport has been removed underneath the GIOP layer

Constructor Detail

ClientConnection

public ClientConnection(GIOPConnection connection, ORB orb, ClientConnectionManager conn_mg, Profile registeredProfile, boolean client_initiated)

Method Detail

cacheSASContext

public long cacheSASContext(byte[] client_authentication_token)

close

public void close()
called from Delegate/ConnectionManagement etc.

closeConnectionReceived

public void closeConnectionReceived(byte[] close_conn, GIOPConnection connection)
Received a CloseConnection message. Remarshal all pending messages. The close mechanism will be invoked separately by the actual closing of the Transport and will trigger the remarshaling.

connectionClosed

public void connectionClosed()
Operations from ConnectionListener used for upcalls from GIOPConnection

decClients

public boolean decClients()
This method decrements the number of clients.

Returns: a boolean value, true if client_count is zero.

getGIOPConnection

public final GIOPConnection getGIOPConnection()

getId

public int getId()

getRegisteredProfile

public Profile getRegisteredProfile()
Get the profile that was used for registering with the ClientConnectionManager. In case of BiDirIIOP it is NOT equal to the transports profile.

getTCS

public int getTCS()

getTCSW

public int getTCSW()

get_server_profile

public Profile get_server_profile()

incClients

public void incClients()
Increments the number of clients.

isClientInitiated

public boolean isClientInitiated()

isTCSNegotiated

public boolean isTCSNegotiated()

locateReplyReceived

public void locateReplyReceived(byte[] reply, GIOPConnection connection)

numClients

public int numClients()
Returns the number of clients currently using this connection.

purgeSASContext

public long purgeSASContext(long client_context_id)

replyReceived

public void replyReceived(byte[] reply, GIOPConnection connection)
Operations from ReplyListener

sendRequest

public void sendRequest(MessageOutputStream outputStream, ReplyPlaceholder placeholder, int request_id, boolean response_expected)
The request_id parameter is only used, if response_expected.

sendRequest

public void sendRequest(MessageOutputStream outputStream, boolean response_expected)

setCodeSet

public void setCodeSet(ParsedIOR pior)

streamClosed

public void streamClosed()
the transport has been removed underneath the GIOP layer