public class ClientConnection extends Object implements ReplyListener, ConnectionListener
Constructor and Description |
---|
ClientConnection(GIOPConnection connection,
ORB orb,
ClientConnectionManager conn_mg,
org.omg.ETF.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(Throwable exceptionCause)
Operations from ConnectionListener
used for upcalls from GIOPConnection
|
boolean |
decClients()
This method decrements the number of clients.
|
org.omg.ETF.Profile |
get_server_profile() |
GIOPConnection |
getGIOPConnection() |
int |
getId() |
org.omg.ETF.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 |
isClosed()
Return the state of the underlying GIOP connection.
|
boolean |
isListenPointListSent()
Used as part of the configuration of a bidirectional connection
Not only returns the value of the listen point list sent flag,
it also sets the value.
|
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(Throwable exceptionCause)
the transport has been
removed underneath the GIOP layer
|
public ClientConnection(GIOPConnection connection, ORB orb, ClientConnectionManager conn_mg, org.omg.ETF.Profile registeredProfile, boolean client_initiated)
public final GIOPConnection getGIOPConnection()
public org.omg.ETF.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 boolean isListenPointListSent()
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 boolean isClosed()
public void replyReceived(byte[] reply, GIOPConnection connection)
replyReceived
in interface ReplyListener
public void locateReplyReceived(byte[] reply, GIOPConnection connection)
locateReplyReceived
in interface ReplyListener
public void closeConnectionReceived(byte[] close_conn, GIOPConnection connection)
closeConnectionReceived
in interface ReplyListener
public void connectionClosed(Throwable exceptionCause)
connectionClosed
in interface ConnectionListener
public void streamClosed(Throwable exceptionCause)
streamClosed
in interface ConnectionListener
public org.omg.ETF.Profile get_server_profile()
public long cacheSASContext(byte[] client_authentication_token)
public long purgeSASContext(long client_context_id)
Copyright © 2017 JacORB. All rights reserved.