Java 8 ServerRequestInfo - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 ServerRequestInfo class.

This code example shows how to use the following methods:get_slot, operation, request_id, set_slot
	return "OTS_Interposition"; 
    } 
 
    private void trace_request(String method, ServerRequestInfo request_info) {
        jtsLogger.logger.tracef("InterpositionServerRequestInterceptorImpl::%s ( %s ) nodeId=%s requestId=%d target=%s", 
                method, request_info.operation(),
                arjPropertyManager.getCoreEnvironmentBean().getNodeIdentifier(), 
                request_info.request_id(), ((ServerRequestInfoImpl) request_info).target().toString());
    } 
 
public void receive_request_service_contexts (ServerRequestInfo request_info) throws SystemException
    { 
	if (jtsLogger.logger.isTraceEnabled()) 
	{ 
        trace_request("receive_request_service_contexts", request_info);
	} 
 
	try 
	{ 
	    try 

5
CodeRank
This code example shows how to use the following methods:get_slot, operation, request_id, set_slot
	return "OTS_Interposition"; 
    } 
 
    private void trace_request(String method, ServerRequestInfo request_info) {
        jtsLogger.logger.tracef("InterpositionServerRequestInterceptorImpl::%s ( %s ) nodeId=%s requestId=%d", 
                method, request_info.operation(), arjPropertyManager.getCoreEnvironmentBean().getNodeIdentifier(),
                request_info.request_id());
    } 
 
public void receive_request_service_contexts (ServerRequestInfo request_info) throws SystemException
    { 
	if (jtsLogger.logger.isTraceEnabled()) 
	{ 
        trace_request("receive_request_service_contexts", request_info);
	} 
 
	try 
	{ 
	    try 
	    { 

5
CodeRank
This code example shows how to use the following methods:get_slot, operation, request_id, set_slot
	return "OTS_Interposition"; 
    } 
 
    private void trace_request(String method, ServerRequestInfo request_info) {
        jtsLogger.logger.tracef("InterpositionServerRequestInterceptorImpl::%s ( %s ) nodeId=%s requestId=%d", 
                method, request_info.operation(), arjPropertyManager.getCoreEnvironmentBean().getNodeIdentifier(),
                request_info.request_id());
    } 
 
public void receive_request_service_contexts (ServerRequestInfo request_info) throws SystemException
    { 
	if (jtsLogger.logger.isTraceEnabled()) 
	{ 
        trace_request("receive_request_service_contexts", request_info);
	} 
 
	try 
	{ 
	    try 
	    { 

5
CodeRank
This code example shows how to use the following methods:get_slot, operation, set_slot
 
public void send_reply (ServerRequestInfo request_info) throws SystemException
    { 
	if (jtsLogger.logger.isTraceEnabled()) 
	{ 
	    jtsLogger.logger.trace("ContextServerRequestInterceptorImpl::send_reply ( "+request_info.operation()+" )");
	} 
 
	try 
	{ 
	    suspendContext(request_info);
	} 
	catch (SystemException ex) {
        jtsLogger.i18NLogger.warn_orbspecific_javaidl_interceptors_context_srie("ContextServerRequestInterceptorImpl::send_reply", ex);
 
        throw ex;
    } 
	catch (Exception e) {
        jtsLogger.i18NLogger.warn_orbspecific_javaidl_interceptors_context_srie("ContextServerRequestInterceptorImpl::send_reply", e);
 

5
CodeRank
This code example shows how to use the following methods:get_slot, operation, set_slot
 
public void send_exception (ServerRequestInfo request_info) throws SystemException
    { 
	if (jtsLogger.logger.isTraceEnabled()) 
	{ 
	    jtsLogger.logger.trace("ContextServerRequestInterceptorImpl::send_exception ( "+request_info.operation()+" )");
	} 
 
	try 
	{ 
	    suspendContext(request_info);
	} 
	catch (SystemException e1) {
        jtsLogger.i18NLogger.warn_orbspecific_javaidl_interceptors_context_srie("ContextServerRequestInterceptorImpl::send_exception", e1);
 
        throw e1;
    } 
	catch (Exception e2) {
        jtsLogger.i18NLogger.warn_orbspecific_javaidl_interceptors_context_srie("ContextServerRequestInterceptorImpl::send_exception", e2);
 

5
CodeRank
This code example shows how to use the following methods:get_slot, operation, set_slot
 
public void send_exception (ServerRequestInfo request_info) throws SystemException
    { 
	if (jtsLogger.logger.isTraceEnabled()) 
	{ 
	    jtsLogger.logger.trace("ContextServerRequestInterceptorImpl::send_exception ( "+request_info.operation()+" )");
	} 
 
	try 
	{ 
	    suspendContext(request_info);
	} 
	catch (SystemException e1) {
        jtsLogger.i18NLogger.warn_orbspecific_jacorb_interceptors_context_srie("ContextServerRequestInterceptorImpl::send_exception", e1);
 
        throw e1;
    } 
	catch (Exception e2) {
        jtsLogger.i18NLogger.warn_orbspecific_jacorb_interceptors_context_srie("ContextServerRequestInterceptorImpl::send_exception", e2);
 

5
CodeRank
This code example shows how to use the following methods:get_request_service_context, operation
public abstract class AbstractServerTransactionPolicyConfig implements ServerTransactionPolicyConfig { 
 
    public void importTransaction(ServerRequestInfo serverRequestInfo) throws SystemException {
        ServiceContext serviceContext = null;
        try { 
            serviceContext = serverRequestInfo.get_request_service_context(TransactionService.value);
        } catch (BAD_PARAM e) {
            // do nothing 
        } 
        PropagationContext propagationContext;
        if (serviceContext == null) {
            propagationContext = null;
        } else { 
            byte[] encoded = serviceContext.context_data;
            Codec codec = Util.getCodec();
            Any any;
            try { 
                any = codec.decode_value(encoded, PropagationContextHelper.type());
            } catch (FormatMismatch formatMismatch) {
                throw (INTERNAL) new INTERNAL("Could not decode encoded propagation context").initCause(formatMismatch);

5
CodeRank
This code example shows how to use the following methods:request_id
            Socket socket = connection.socket();
            if (socket != null && socket instanceof SSLSocket) {
                if (log.isDebugEnabled()) log.debug("Found SSL Session"); 
                SSLSocket sslSocket = (SSLSocket) socket;
 
                SSLSessionManager.setSSLSession(ri.request_id(), sslSocket.getSession());
            } 
        } 
    } 
 
    public void send_exception(ServerRequestInfo ri) {
        // clean any SSL session information if we registered. 
        SSLSession old = SSLSessionManager.clearSSLSession(ri.request_id());
        if (log.isDebugEnabled() && old != null) log.debug("Removing SSL Session for send_exception");
    } 
 
    public void send_other(ServerRequestInfo ri) {
        // clean any SSL session information if we registered. 
        SSLSession old = SSLSessionManager.clearSSLSession(ri.request_id());
        if (log.isDebugEnabled() && old != null) log.debug("Removing SSL Session for send_reply");
4
CodeRank
See Code Examples for Java 8 ServerRequestInfo Methods: