Java Code Examples for org.omg.IOP.ServiceContext

The following are top voted examples for showing how to use org.omg.IOP.ServiceContext. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return getServiceContext( cachedRequestServiceContexts,
                              request.getRequestServiceContexts(), id );
}
 
Example 2
Project: OpenJSharp   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    return getServiceContext( cachedReplyServiceContexts,
                              replyMessage.getServiceContexts(), id );
}
 
Example 3
Project: openjdk-jdk10   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return getServiceContext( cachedRequestServiceContexts,
                              request.getRequestServiceContexts(), id );
}
 
Example 4
Project: openjdk-jdk10   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    return getServiceContext( cachedReplyServiceContexts,
                              replyMessage.getServiceContexts(), id );
}
 
Example 5
Project: openjdk9   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return getServiceContext( cachedRequestServiceContexts,
                              request.getRequestServiceContexts(), id );
}
 
Example 6
Project: openjdk9   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    return getServiceContext( cachedReplyServiceContexts,
                              replyMessage.getServiceContexts(), id );
}
 
Example 7
Project: openjdk9   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Allows interceptors to add service contexts to the request.
 * <p>
 * There is no declaration of the order of the service contexts.  They
 * may or may not appear in the order they are added.
 */
public void add_request_service_context (ServiceContext service_context,
                                         boolean replace)
{
    checkAccess( MID_ADD_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    addServiceContext( cachedRequestServiceContexts,
                       messageMediator.getRequestServiceContexts(),
                       service_context, replace );
}
 
Example 8
Project: openjdk9   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return  getServiceContext(cachedRequestServiceContexts,
                              messageMediator.getRequestServiceContexts(),
                              id);
}
 
Example 9
Project: openjdk9   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * does not contain an etry for that ID, BAD_PARAM with a minor code of
 * TBD_BP is raised.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    // In the event this is called from a oneway, we will have no
    // response object.
    //
    // In the event this is called after a IIOPConnection.purgeCalls,
    // we will have a response object, but that object will
    // not contain a header (which would hold the service context
    // container).  See bug 4624102.
    //
    // REVISIT: this is the only thing used
    // from response at this time.  However, a more general solution
    // would avoid accessing other parts of response's header.
    //
    // Instead of throwing a NullPointer, we will
    // "gracefully" handle these with a BAD_PARAM with minor code 25.

    try {
        ServiceContexts serviceContexts =
            messageMediator.getReplyServiceContexts();
        if (serviceContexts == null) {
            throw new NullPointerException();
        }
        return getServiceContext(cachedReplyServiceContexts,
                                 serviceContexts, id);
    } catch (NullPointerException e) {
        // REVISIT how this is programmed - not what it does.
        // See purge calls test.  The waiter is woken up by the
        // call to purge calls - but there is no reply containing
        // service contexts.
        throw stdWrapper.invalidServiceContextId( e ) ;
    }
}
 
Example 10
Project: lookaside_java-1.8.0-openjdk   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return getServiceContext( cachedRequestServiceContexts,
                              request.getRequestServiceContexts(), id );
}
 
Example 11
Project: lookaside_java-1.8.0-openjdk   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    return getServiceContext( cachedReplyServiceContexts,
                              replyMessage.getServiceContexts(), id );
}
 
Example 12
Project: lookaside_java-1.8.0-openjdk   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Allows interceptors to add service contexts to the request.
 * <p>
 * There is no declaration of the order of the service contexts.  They
 * may or may not appear in the order they are added.
 */
public void add_request_service_context (ServiceContext service_context,
                                         boolean replace)
{
    checkAccess( MID_ADD_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    addServiceContext( cachedRequestServiceContexts,
                       messageMediator.getRequestServiceContexts(),
                       service_context, replace );
}
 
Example 13
Project: lookaside_java-1.8.0-openjdk   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return  getServiceContext(cachedRequestServiceContexts,
                              messageMediator.getRequestServiceContexts(),
                              id);
}
 
Example 14
Project: lookaside_java-1.8.0-openjdk   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * does not contain an etry for that ID, BAD_PARAM with a minor code of
 * TBD_BP is raised.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    // In the event this is called from a oneway, we will have no
    // response object.
    //
    // In the event this is called after a IIOPConnection.purgeCalls,
    // we will have a response object, but that object will
    // not contain a header (which would hold the service context
    // container).  See bug 4624102.
    //
    // REVISIT: this is the only thing used
    // from response at this time.  However, a more general solution
    // would avoid accessing other parts of response's header.
    //
    // Instead of throwing a NullPointer, we will
    // "gracefully" handle these with a BAD_PARAM with minor code 25.

    try {
        ServiceContexts serviceContexts =
            messageMediator.getReplyServiceContexts();
        if (serviceContexts == null) {
            throw new NullPointerException();
        }
        return getServiceContext(cachedReplyServiceContexts,
                                 serviceContexts, id);
    } catch (NullPointerException e) {
        // REVISIT how this is programmed - not what it does.
        // See purge calls test.  The waiter is woken up by the
        // call to purge calls - but there is no reply containing
        // service contexts.
        throw stdWrapper.invalidServiceContextId( e ) ;
    }
}
 
Example 15
Project: jdk8u_corba   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return getServiceContext( cachedRequestServiceContexts,
                              request.getRequestServiceContexts(), id );
}
 
Example 16
Project: jdk8u_corba   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    return getServiceContext( cachedReplyServiceContexts,
                              replyMessage.getServiceContexts(), id );
}
 
Example 17
Project: jdk8u_corba   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Allows interceptors to add service contexts to the request.
 * <p>
 * There is no declaration of the order of the service contexts.  They
 * may or may not appear in the order they are added.
 */
public void add_request_service_context (ServiceContext service_context,
                                         boolean replace)
{
    checkAccess( MID_ADD_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    addServiceContext( cachedRequestServiceContexts,
                       messageMediator.getRequestServiceContexts(),
                       service_context, replace );
}
 
Example 18
Project: jdk8u_corba   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return  getServiceContext(cachedRequestServiceContexts,
                              messageMediator.getRequestServiceContexts(),
                              id);
}
 
Example 19
Project: jdk8u_corba   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * does not contain an etry for that ID, BAD_PARAM with a minor code of
 * TBD_BP is raised.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    // In the event this is called from a oneway, we will have no
    // response object.
    //
    // In the event this is called after a IIOPConnection.purgeCalls,
    // we will have a response object, but that object will
    // not contain a header (which would hold the service context
    // container).  See bug 4624102.
    //
    // REVISIT: this is the only thing used
    // from response at this time.  However, a more general solution
    // would avoid accessing other parts of response's header.
    //
    // Instead of throwing a NullPointer, we will
    // "gracefully" handle these with a BAD_PARAM with minor code 25.

    try {
        ServiceContexts serviceContexts =
            messageMediator.getReplyServiceContexts();
        if (serviceContexts == null) {
            throw new NullPointerException();
        }
        return getServiceContext(cachedReplyServiceContexts,
                                 serviceContexts, id);
    } catch (NullPointerException e) {
        // REVISIT how this is programmed - not what it does.
        // See purge calls test.  The waiter is woken up by the
        // call to purge calls - but there is no reply containing
        // service contexts.
        throw stdWrapper.invalidServiceContextId( e ) ;
    }
}
 
Example 20
Project: javify   File: gnuClientRequestInfo.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void add_request_service_context(ServiceContext service_context,
  boolean replace
)
{
  request.add_request_service_context(service_context, replace);
}
 
Example 21
Project: javify   File: gnuServerRequestInfo.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void add_reply_service_context(ServiceContext service_context,
  boolean replace
)
{
  m_reply_header.addContext(service_context, replace);
}
 
Example 22
Project: javify   File: gnuServerRequestInfo.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public ServiceContext get_reply_service_context(int ctx_name)
  throws BAD_PARAM
{
  return gnu.CORBA.GIOP.ServiceContext.findContext(ctx_name,
    m_reply_header.service_context
  );
}
 
Example 23
Project: javify   File: gnuServerRequestInfo.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public ServiceContext get_request_service_context(int ctx_name)
  throws BAD_PARAM
{
  return gnu.CORBA.GIOP.ServiceContext.findContext(ctx_name,
    m_request_header.service_context
  );
}
 
Example 24
Project: javify   File: gnuRequest.java   Source Code and License 5 votes vote down vote up
/**
 * Add context to request.
 */
public void add_request_service_context(ServiceContext service_context,
  boolean replace
)
{
  m_rqh.addContext(service_context, replace);
}
 
Example 25
Project: javify   File: gnuRequest.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public ServiceContext get_request_service_context(int ctx_name)
  throws BAD_PARAM
{
  return gnu.CORBA.GIOP.ServiceContext.findContext(ctx_name,
    m_rqh.service_context
  );
}
 
Example 26
Project: javify   File: gnuRequest.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public ServiceContext get_reply_service_context(int ctx_name)
  throws BAD_PARAM
{
  if (m_rph == null)
    throw new BAD_INV_ORDER("Reply context not yet available");
  return gnu.CORBA.GIOP.ServiceContext.findContext(ctx_name,
    m_rph.service_context
  );
}
 
Example 27
Project: jvm-stm   File: gnuClientRequestInfo.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void add_request_service_context(ServiceContext service_context,
  boolean replace
)
{
  request.add_request_service_context(service_context, replace);
}
 
Example 28
Project: jvm-stm   File: gnuServerRequestInfo.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void add_reply_service_context(ServiceContext service_context,
  boolean replace
)
{
  m_reply_header.addContext(service_context, replace);
}
 
Example 29
Project: jvm-stm   File: gnuServerRequestInfo.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public ServiceContext get_reply_service_context(int ctx_name)
  throws BAD_PARAM
{
  return gnu.CORBA.GIOP.ServiceContext.findContext(ctx_name,
    m_reply_header.service_context
  );
}
 
Example 30
Project: jvm-stm   File: gnuServerRequestInfo.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public ServiceContext get_request_service_context(int ctx_name)
  throws BAD_PARAM
{
  return gnu.CORBA.GIOP.ServiceContext.findContext(ctx_name,
    m_request_header.service_context
  );
}
 
Example 31
Project: jvm-stm   File: gnuRequest.java   Source Code and License 5 votes vote down vote up
/**
 * Add context to request.
 */
public void add_request_service_context(ServiceContext service_context,
  boolean replace
)
{
  m_rqh.addContext(service_context, replace);
}
 
Example 32
Project: jvm-stm   File: gnuRequest.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public ServiceContext get_request_service_context(int ctx_name)
  throws BAD_PARAM
{
  return gnu.CORBA.GIOP.ServiceContext.findContext(ctx_name,
    m_rqh.service_context
  );
}
 
Example 33
Project: jvm-stm   File: gnuRequest.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public ServiceContext get_reply_service_context(int ctx_name)
  throws BAD_PARAM
{
  if (m_rph == null)
    throw new BAD_INV_ORDER("Reply context not yet available");
  return gnu.CORBA.GIOP.ServiceContext.findContext(ctx_name,
    m_rph.service_context
  );
}
 
Example 34
Project: infobip-open-jdk-8   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return getServiceContext( cachedRequestServiceContexts,
                              request.getRequestServiceContexts(), id );
}
 
Example 35
Project: infobip-open-jdk-8   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    return getServiceContext( cachedReplyServiceContexts,
                              replyMessage.getServiceContexts(), id );
}
 
Example 36
Project: infobip-open-jdk-8   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Allows interceptors to add service contexts to the request.
 * <p>
 * There is no declaration of the order of the service contexts.  They
 * may or may not appear in the order they are added.
 */
public void add_request_service_context (ServiceContext service_context,
                                         boolean replace)
{
    checkAccess( MID_ADD_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    addServiceContext( cachedRequestServiceContexts,
                       messageMediator.getRequestServiceContexts(),
                       service_context, replace );
}
 
Example 37
Project: infobip-open-jdk-8   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return  getServiceContext(cachedRequestServiceContexts,
                              messageMediator.getRequestServiceContexts(),
                              id);
}
 
Example 38
Project: infobip-open-jdk-8   File: ClientRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * does not contain an etry for that ID, BAD_PARAM with a minor code of
 * TBD_BP is raised.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    // In the event this is called from a oneway, we will have no
    // response object.
    //
    // In the event this is called after a IIOPConnection.purgeCalls,
    // we will have a response object, but that object will
    // not contain a header (which would hold the service context
    // container).  See bug 4624102.
    //
    // REVISIT: this is the only thing used
    // from response at this time.  However, a more general solution
    // would avoid accessing other parts of response's header.
    //
    // Instead of throwing a NullPointer, we will
    // "gracefully" handle these with a BAD_PARAM with minor code 25.

    try {
        ServiceContexts serviceContexts =
            messageMediator.getReplyServiceContexts();
        if (serviceContexts == null) {
            throw new NullPointerException();
        }
        return getServiceContext(cachedReplyServiceContexts,
                                 serviceContexts, id);
    } catch (NullPointerException e) {
        // REVISIT how this is programmed - not what it does.
        // See purge calls test.  The waiter is woken up by the
        // call to purge calls - but there is no reply containing
        // service contexts.
        throw stdWrapper.invalidServiceContextId( e ) ;
    }
}
 
Example 39
Project: openjdk-source-code-learn   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_request_service_context( int id ) {
    checkAccess( MID_GET_REQUEST_SERVICE_CONTEXT );

    if( cachedRequestServiceContexts == null ) {
        cachedRequestServiceContexts = new HashMap();
    }

    return getServiceContext( cachedRequestServiceContexts,
                              request.getRequestServiceContexts(), id );
}
 
Example 40
Project: openjdk-source-code-learn   File: ServerRequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public org.omg.IOP.ServiceContext get_reply_service_context( int id ) {
    checkAccess( MID_GET_REPLY_SERVICE_CONTEXT );

    if( cachedReplyServiceContexts == null ) {
        cachedReplyServiceContexts = new HashMap();
    }

    return getServiceContext( cachedReplyServiceContexts,
                              replyMessage.getServiceContexts(), id );
}