Methods Summary |
---|
public int | compareTo(java.lang.Object o)
int otherOrder = -1;
if(o instanceof ClientConnectionInterceptor) {
otherOrder = ((ClientConnectionInterceptor)o).order;
}
if (order < otherOrder) {
return -1;
} else if (order == otherOrder) {
return 0;
}
return 1;
|
public void | destroy()
|
public java.lang.String | name()Return the name of the interceptor.
return name;
|
public void | receive_exception(org.omg.PortableInterceptor.ClientRequestInfo cri)
|
public void | receive_other(org.omg.PortableInterceptor.ClientRequestInfo cri)
|
public void | receive_reply(org.omg.PortableInterceptor.ClientRequestInfo cri)
|
public void | send_poll(org.omg.PortableInterceptor.ClientRequestInfo cri)
|
public void | send_request(org.omg.PortableInterceptor.ClientRequestInfo cri)
// Check if there is an exportable transaction on current thread
Object target = cri.effective_target();
J2EETransactionManager tm = Switch.getSwitch().getTransactionManager();
if ( tm != null )
tm.checkTransactionExport(StubAdapter.isLocal(target));
// Get connection information and store it in ConnectionContext
Connection c = ((RequestInfoExt)cri).connection();
if(c != null) {
SecurityMechanismSelector sms = new SecurityMechanismSelector();
ConnectionContext cc = sms.getClientConnectionContext();
if(_logger.isLoggable(Level.FINE)){
_logger.log(Level.FINE,"SENDING request on connection: " + c);
}
if(cc != null) {
cc.setSocket(c.getSocket());
}
}
|