コード例 #1
0
ファイル: IIOPListener.java プロジェクト: SteveOss/JacORB
  /** Creates a new IIOPProfile that describes this transport address. */
  private IIOPProfile createAddressProfile() throws ConfigurationException {
    if (acceptor != null) {
      if (address.getPort() == 0) {
        address.setPort(((Acceptor) acceptor).getLocalAddress().getPort());
      } else {
        if (logger.isDebugEnabled()) {
          logger.debug("Using port " + address.getPort());
        }
      }
    } else if (sslAcceptor == null) {
      throw new org.omg.CORBA.INITIALIZE("no acceptors found, cannot create address profile");
    }

    IIOPProfile result = new IIOPProfile(address, null, orb.getGIOPMinorVersion());
    result.configure(configuration);

    if (sslAcceptor != null && generateSSLComponents) {
      result.addComponent(TAG_SSL_SEC_TRANS.value, createSSL(), SSLHelper.class);
    }

    return result;
  }