Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.HTTPProtocolConfig


      if ( ! checkNotOffline( "testHTTPProtocol" ) )
      {
          return;
      }
     
    HTTPProtocolConfig on = proxy().getHTTPProtocolConfig();
    boolean exists = (on != null);
    if (!exists)
    {
      on = proxy().createHTTPProtocolConfig(EMPTY_MAP);
      assert on == proxy().getHTTPProtocolConfig();
    }
    HTTPProtocolConfig rp = proxy().getHTTPProtocolConfig();
    assert rp != null;
    if (!exists) { proxy().removeHTTPProtocolConfig(); }
  }
View Full Code Here


        @HandlerOutput(name="Default",  type=String.class)})
       
        public static void getHttpProtocolSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
  HTTPProtocolConfig hp = config.getHTTPServiceConfig().getHTTPProtocolConfig();
        String version = hp.getVersion();
        boolean dns = hp.getDNSLookupEnabled();
        boolean ssl = hp.getSSLEnabled();
        String forced = hp.getForcedType();
        String defaultResponse = hp.getDefaultType();
        handlerCtx.setOutputValue("Version", version);
        handlerCtx.setOutputValue("DNS", dns);
        handlerCtx.setOutputValue("SSL", ssl);  
        handlerCtx.setOutputValue("Forced", forced);   
        handlerCtx.setOutputValue("Default", defaultResponse);  
View Full Code Here

        @HandlerOutput(name="Default",  type=String.class)})
       
        public static void getHttpProtocolDefaultSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
  HTTPProtocolConfig hp = config.getHTTPServiceConfig().getHTTPProtocolConfig();
        String version = hp.getDefaultValue(HTTPProtocolConfigKeys.VERSION_KEY);
        String dns = hp.getDefaultValue(HTTPProtocolConfigKeys.DNS_LOOKUP_ENABLED_KEY );
        String ssl = hp.getDefaultValue(HTTPProtocolConfigKeys.SSL_ENABLED_KEY);
        String forced = hp.getDefaultValue(HTTPProtocolConfigKeys.FORCED_TYPE_KEY);
        String defaultResponse = hp.getDefaultValue(HTTPProtocolConfigKeys.DEFAULT_TYPE_KEY);
        handlerCtx.setOutputValue("Version", version);
        if(dns.equals("true")) {
            handlerCtx.setOutputValue("DNS", true);   
        } else {
            handlerCtx.setOutputValue("DNS", false);
View Full Code Here

       
        public static void saveHttpProtocolSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        try{
            HTTPProtocolConfig hp = config.getHTTPServiceConfig().getHTTPProtocolConfig();
            hp.setVersion(((String)handlerCtx.getInputValue("Version")));
            hp.setDNSLookupEnabled(((Boolean)handlerCtx.getInputValue("DNS")).booleanValue());
            hp.setSSLEnabled(((Boolean)handlerCtx.getInputValue("SSL")).booleanValue());
            hp.setForcedType(((String)handlerCtx.getInputValue("Forced")));
            hp.setDefaultType(((String)handlerCtx.getInputValue("Default")));
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }   
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.HTTPProtocolConfig

Copyright © 2018 www.massapicom. 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.