public class ClientConnection extends java.lang.Object implements ReplyListener, ConnectionListener
| Constructor and Description |
|---|
ClientConnection(GIOPConnection connection,
ORB orb,
ClientConnectionManager conn_mg,
Profile registeredProfile,
boolean client_initiated) |
| Modifier and Type | Method and Description |
|---|---|
long |
cacheSASContext(byte[] client_authentication_token) |
void |
close()
called from Delegate/ConnectionManagement etc.
|
void |
closeConnectionReceived(byte[] close_conn,
GIOPConnection connection)
Received a CloseConnection message.
|
void |
connectionClosed()
Operations from ConnectionListener
used for upcalls from GIOPConnection
|
boolean |
decClients()
This method decrements the number of clients.
|
Profile |
get_server_profile() |
GIOPConnection |
getGIOPConnection() |
int |
getId() |
Profile |
getRegisteredProfile()
Get the profile that was used for registering with the
ClientConnectionManager.
|
CodeSet |
getTCS() |
CodeSet |
getTCSW() |
void |
incClients()
Increments the number of clients.
|
boolean |
isClientInitiated() |
boolean |
isTCSNegotiated() |
void |
locateReplyReceived(byte[] reply,
GIOPConnection connection) |
int |
numClients()
Returns the number of clients currently using this connection.
|
long |
purgeSASContext(long client_context_id) |
void |
replyReceived(byte[] reply,
GIOPConnection connection)
Operations from ReplyListener
|
void |
sendRequest(MessageOutputStream outputStream,
boolean response_expected) |
void |
sendRequest(MessageOutputStream outputStream,
ReplyPlaceholder placeholder,
int request_id,
boolean response_expected)
The request_id parameter is only used, if response_expected.
|
void |
setCodeSet(ParsedIOR pior) |
void |
streamClosed()
the transport has been
removed underneath the GIOP layer
|
public ClientConnection(GIOPConnection connection, ORB orb, ClientConnectionManager conn_mg, Profile registeredProfile, boolean client_initiated)
public final GIOPConnection getGIOPConnection()
public Profile getRegisteredProfile()
public void setCodeSet(ParsedIOR pior)
public boolean isTCSNegotiated()
public CodeSet getTCS()
public CodeSet getTCSW()
public int getId()
public void incClients()
public boolean decClients()
boolean value, true if client_count is zero.public int numClients()
public boolean isClientInitiated()
public void sendRequest(MessageOutputStream outputStream, ReplyPlaceholder placeholder, int request_id, boolean response_expected)
public void sendRequest(MessageOutputStream outputStream, boolean response_expected)
public void close()
public void replyReceived(byte[] reply,
GIOPConnection connection)
replyReceived in interface ReplyListenerpublic void locateReplyReceived(byte[] reply,
GIOPConnection connection)
locateReplyReceived in interface ReplyListenerpublic void closeConnectionReceived(byte[] close_conn,
GIOPConnection connection)
closeConnectionReceived in interface ReplyListenerpublic void connectionClosed()
connectionClosed in interface ConnectionListenerpublic void streamClosed()
streamClosed in interface ConnectionListenerpublic Profile get_server_profile()
public long cacheSASContext(byte[] client_authentication_token)
public long purgeSASContext(long client_context_id)