コード例 #1
0
  /** 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);
  }
コード例 #2
0
  /**
   * 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);
  }