Package com.google.opengse.configuration.impl

Examples of com.google.opengse.configuration.impl.MutableWebAppServlet


  }

  public WebAppConfigurationBuilder addServlet(
      String servletName, Class<? extends Servlet> servletClass,
      String pattern, Properties initParams) {
    MutableWebAppServlet servlet = MutableWebAppServlet.create();
    servlet.setServletName(servletName);
    servlet.setServletClass(servletClass.getName());
    MutableWebAppInitParam initParam;
    for (Object okey : initParams.keySet()) {
      String key = okey.toString();
      String value = initParams.getProperty(key);
      initParam = MutableWebAppInitParam.create();
      initParam.setParamName(key);
      initParam.setParamValue(value);
      servlet.addInitParam(initParam);
    }
    config.addServlet(servlet);
    MutableWebAppServletMapping servletMapping
        = MutableWebAppServletMapping.create();
    servletMapping.setServletName(servletName);
View Full Code Here


  }

  public WebAppConfigurationBuilder unsafe_addServlet(
      String servletName, String whatClaimsToBeAServletClass,
      String pattern, Properties initParams) {
    MutableWebAppServlet servlet = MutableWebAppServlet.create();
    servlet.setServletName(servletName);
    servlet.setServletClass(whatClaimsToBeAServletClass);
    MutableWebAppInitParam initParam;
    for (Object okey : initParams.keySet()) {
      String key = okey.toString();
      String value = initParams.getProperty(key);
      initParam = MutableWebAppInitParam.create();
      initParam.setParamName(key);
      initParam.setParamValue(value);
      servlet.addInitParam(initParam);
    }
    config.addServlet(servlet);
    MutableWebAppServletMapping servletMapping
        = MutableWebAppServletMapping.create();
    servletMapping.setServletName(servletName);
View Full Code Here

    SecurityRoleRefParser() throws NoSuchMethodException {
      creator = new SecurityRoleRefCreator();
    }

    public void parse(Object context, Node webappSubnode) throws SAXException {
      MutableWebAppServlet servlet = (MutableWebAppServlet) context;
      WebAppSecurityRoleRef securityRoleRef
          = (WebAppSecurityRoleRef) creator.create(webappSubnode);
      if (securityRoleRef != null) {
        servlet.addSecurityRoleRef(securityRoleRef);
      }
    }
View Full Code Here

TOP

Related Classes of com.google.opengse.configuration.impl.MutableWebAppServlet

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.