Examples of ClientContainer


Examples of com.sun.enterprise.config.clientbeans.ClientContainer

            ConfigContext ctx =
                ConfigFactory.createConfigContext
                (configFile, true, false, false,
                 com.sun.enterprise.config.clientbeans.ClientContainer.class,
     new com.sun.enterprise.config.clientbeans.ClientBeansResolver());
            final ClientContainer cc  =
                ClientBeansFactory.getClientBean(ctx);

            LogService logService = cc.getLogService();
            // could be null if optional "log-service" element is omitted
            if (logService != null) {

                String logLevel = logService.getLevel();
                if (logLevel != null && !logLevel.equals("")) {
                    _logLevel = Level.parse(logLevel);
                }

                String logFileName = cc.getLogService().getFile();
                if (logFileName != null && !logFileName.equals("")) {
                    _clientHandler = new FileHandler(logFileName, true);
                    _clientHandler.setFormatter(new SimpleFormatter());

                    // workaround to delete lockfile upon exit
View Full Code Here

Examples of com.sun.enterprise.config.clientbeans.ClientContainer

          true,
          false,
          false,
          ClientContainer.class,
          new ClientBeansResolver());
      ClientContainer cc = (ClientContainer)configCtx.getRootConfigBean();
      com.sun.enterprise.config.clientbeans.MessageSecurityConfig[]
    msgConfigs = cc.getMessageSecurityConfig();

      for (int j = 0; msgConfigs != null && j < msgConfigs.length; j++) {

    // single message-security-config for each auth-layer
    //
View Full Code Here

Examples of com.sun.enterprise.config.clientbeans.ClientContainer

    clientXmlLocation, true,
    false, false,
    ClientContainer.class,
    new ACCEntityResolver());

            ClientContainer cc = ClientBeansFactory.getClientBean(ctx);
       
      host = cc.getTargetServer(0).getAddress();
      port = cc.getTargetServer(0).getPort();

      //check for targetServerEndpoints
      TargetServer[] tServer = cc.getTargetServer();
      String targetServerEndpoints = null;
      for (int i = 0; i < tServer.length; i++) {
          if (targetServerEndpoints == null) {
        targetServerEndpoints = tServer[i].getAddress() +
          ":" + tServer[i].getPort();
    } else {
      // if we come here, that means we have more than 1 target-server elements.
      // in that case FOLB should be enabled
        lb_enabled = true;
        targetServerEndpoints = targetServerEndpoints + "," +
          tServer[i].getAddress() +
          ":" + tServer[i].getPort();
    }
      }
   
            setSSLData(cc);

            //FIXME: what do we do about realm
            ClientCredential cCrd = cc.getClientCredential();
            if(cCrd != null) {
                String uname = null;
                String upass = null;

                // if user entered user/password from command line,
                // it take percedence over the xml file. - y.l. 05/15/02
                if (System.getProperty(LOGIN_NAME) == null) {
                    _logger.config("using login name from client container xml...");
                    //System.setProperty(LOGIN_NAME, cCrd.getUserName());
                    uname = cCrd.getUserName();
                }
                if (System.getProperty(LOGIN_PASSWORD) == null) {
                    _logger.config("using password from client container xml...");
                    // System.setProperty(LOGIN_PASSWORD, cCrd.getPassword());
                    upass = cCrd.getPassword();
                }
                if( uname != null || upass != null ) {
                    UsernamePasswordStore.set(uname, upass);
                }
            }
    String endpoints_property = null;
      // Check if client requires SSL to be used
      ElementProperty[] props = cc.getElementProperty();
      for ( int i=0; i<props.length; i++ ) {
    if ( props[i].getName().equals("ssl") ) {
        if ( props[i].getValue().equals("required") ) {
      (ORBManager.getCSIv2Props()).put(ORBManager.ORB_SSL_CLIENT_REQUIRED,
               "true");
View Full Code Here

Examples of com.sun.enterprise.config.clientbeans.ClientContainer

    clientXmlLocation, true,
    false, false,
    ClientContainer.class,
    new ACCEntityResolver());

            ClientContainer cc = ClientBeansFactory.getClientBean(ctx);
       
      host = cc.getTargetServer(0).getAddress();
      port = cc.getTargetServer(0).getPort();

      //check for targetServerEndpoints
      TargetServer[] tServer = cc.getTargetServer();
      String targetServerEndpoints = null;
      for (int i = 0; i < tServer.length; i++) {
          if (targetServerEndpoints == null) {
        targetServerEndpoints = tServer[i].getAddress() +
        ":" + tServer[i].getPort();
    } else {
        targetServerEndpoints = targetServerEndpoints + "," +
          tServer[i].getAddress() +
          ":" + tServer[i].getPort();
                    lb_enabled = true;
    }
      }
   
            setSSLData(cc);

            //FIXME: what do we do about realm
            ClientCredential cCrd = cc.getClientCredential();
            if(cCrd != null) {
                String uname = null;
                String upass = null;

                // if user entered user/password from command line,
                // it take percedence over the xml file. - y.l. 05/15/02
                if (System.getProperty(LOGIN_NAME) == null) {
                    _logger.config("using login name from client container xml...");
                    //System.setProperty(LOGIN_NAME, cCrd.getUserName());
                    uname = cCrd.getUserName();
                }
                if (System.getProperty(LOGIN_PASSWORD) == null) {
                    _logger.config("using password from client container xml...");
                    //System.setProperty(LOGIN_PASSWORD, cCrd.getPassword());
                    upass = cCrd.getPassword();
                }
                if( uname != null || upass != null ) {
                    UsernamePasswordStore.set(uname, upass);
                }
            }
    String endpoints_property = null;
      // Check if client requires SSL to be used
      ElementProperty[] props = cc.getElementProperty();
      for ( int i=0; i<props.length; i++ ) {
    if ( props[i].getName().equals("ssl") ) {
        if ( props[i].getValue().equals("required") ) {
      (ORBManager.getCSIv2Props()).put(ORBManager.ORB_SSL_CLIENT_REQUIRED,
               "true");
View Full Code Here

Examples of com.sun.enterprise.config.clientbeans.ClientContainer

        // auth-layer
        String intercept = null;

        try {
            ClientContainer cc = (ClientContainer)configCtx.getRootConfigBean();
            com.sun.enterprise.config.clientbeans.MessageSecurityConfig[]
                msgConfigs = cc.getMessageSecurityConfig();

            for (int j = 0; msgConfigs != null && j < msgConfigs.length; j++) {

                // single message-security-config for each auth-layer
                //
View Full Code Here

Examples of org.eclipse.jetty.websocket.jsr356.ClientContainer

        // Create Local JsrSession
        String id = testname.getMethodName();
        URI requestURI = URI.create("ws://localhost/" + id);
        DummyConnection connection = new DummyConnection();
        ClientContainer container = new ClientContainer();
        @SuppressWarnings("resource")
        JsrSession session = new JsrSession(requestURI,driver,connection,container,id);
        session.setPolicy(policy);
        session.open();
        return driver;
View Full Code Here

Examples of org.glassfish.appclient.client.acc.config.ClientContainer

         */

        /*
         * Load the ACC configuration XML file.
         */
        ClientContainer clientContainer = readConfig(
                appClientCommandArgs.getConfigFilePath(), loader);

        /*
         * Decide what target servers to use.  This combines any
         * specified on the command line with any in the config file's
View Full Code Here

Examples of org.glassfish.appclient.client.acc.config.ClientContainer

    private static ClientContainer readConfig(final String configPath,
            final ClassLoader loader) throws UserError, JAXBException,
                FileNotFoundException, ParserConfigurationException,
                SAXException, URISyntaxException,
                IOException {
        ClientContainer result = null;
        Reader configReader = null;
        String configFileLocationForErrorMessage = "";
        try {
            /*
             * During a Java Web Start launch, the config is passed as a property
View Full Code Here

Examples of org.glassfish.appclient.client.acc.config.ClientContainer

         */

        /*
         * Load the ACC configuration XML file.
         */
        ClientContainer clientContainer = readConfig(
                appClientCommandArgs.getConfigFilePath(), loader);

        /*
         * Decide what target servers to use.  This combines any
         * specified on the command line with any in the config file's
View Full Code Here

Examples of org.glassfish.appclient.client.acc.config.ClientContainer

    private static ClientContainer readConfig(final String configPath,
            final ClassLoader loader) throws UserError, JAXBException,
                FileNotFoundException, ParserConfigurationException,
                SAXException, URISyntaxException,
                IOException {
        ClientContainer result = null;
        Reader configReader = null;
        String configFileLocationForErrorMessage = "";
        try {
            /*
             * During a Java Web Start launch, the config is passed as a property
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.