Package com.google.opengse.configuration.impl

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


  public WebAppConfigurationBuilder addFilter(
      Class<? extends Filter> filterClass,
      String pattern,
      Properties initParams) {
    MutableWebAppFilter filter = MutableWebAppFilter.create();
    filter.setFilterName(filterClass.getName());
    filter.setFilterClass(filterClass.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);
      filter.addInitParam(initParam);
    }
    config.addFilter(filter);
    MutableWebappFilterMapping filterMapping
        = MutableWebappFilterMapping.create();
    filterMapping.setFilterName(filterClass.getName());
View Full Code Here

TOP

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

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.