Examples of addURLPattern()


Examples of com.caucho.server.dispatch.ServletMapping.addURLPattern()

      hostConfig.addPropertyProgram("web-app", webAppConfig);

      // host.addWebApp(webAppConfig);
     
      ServletMapping mapping = new ServletMapping();
      mapping.addURLPattern("/hmtp");
      mapping.setServletClass("com.caucho.remote.HmtpServlet");
      mapping.setInitParam("authentication-required",
                           String.valueOf(_isAuthenticationRequired));
      mapping.setInitParam("admin", "true");
      mapping.init();
View Full Code Here

Examples of com.caucho.server.dispatch.ServletMapping.addURLPattern()

          WebServlet webServlet = (WebServlet) ann;
     
          ServletMapping mapping = new ServletMapping();

          for (String value : webServlet.value()) {
            mapping.addURLPattern(value);
          }
         
          for (String value : webServlet.urlPatterns()) {
            mapping.addURLPattern(value);
          }
View Full Code Here

Examples of com.caucho.server.dispatch.ServletMapping.addURLPattern()

          for (String value : webServlet.value()) {
            mapping.addURLPattern(value);
          }
         
          for (String value : webServlet.urlPatterns()) {
            mapping.addURLPattern(value);
          }
         
          mapping.setBean(bean);
       
          mapping.init();
View Full Code Here

Examples of com.caucho.server.dispatch.ServletMapping.addURLPattern()

          Method urlPatternMethod = annType.getMethod("urlPattern");

          String urlPattern = (String) urlPatternMethod.invoke(ann);
     
          ServletMapping mapping = new ServletMapping();
          mapping.addURLPattern(urlPattern);
          mapping.setBean(bean);

          mapping.setProtocolFactory(factory);
       
          mapping.init();
View Full Code Here

Examples of com.caucho.server.dispatch.ServletMapping.addURLPattern()

    mapping.setServletName(name);

    if (webServlet.value().length > 0 && webServlet.urlPatterns().length == 0) {
      for (String url : webServlet.value())
        mapping.addURLPattern(url); // XXX: support addURLRegexp?
    }
    else if (webServlet.urlPatterns().length > 0 &&
             webServlet.value().length == 0) {
      for (String url : webServlet.urlPatterns()) {
        mapping.addURLPattern(url); // XXX: support addURLRegexp?
View Full Code Here

Examples of com.caucho.server.dispatch.ServletMapping.addURLPattern()

        mapping.addURLPattern(url); // XXX: support addURLRegexp?
    }
    else if (webServlet.urlPatterns().length > 0 &&
             webServlet.value().length == 0) {
      for (String url : webServlet.urlPatterns()) {
        mapping.addURLPattern(url); // XXX: support addURLRegexp?
      }
    } else {
      throw new ConfigException(L.l("Annotation @WebServlet at '{0}' must specify either value or urlPatterns", servletClassName));
    }
View Full Code Here

Examples of com.caucho.server.dispatch.ServletMapping.addURLPattern()

        mapping.setServletClass(JspXmlServlet.class.getName());
      else
        mapping.setServletClass(JspServlet.class.getName());

      for (int i = 0; i < _urlPatterns.size(); i++) {
        mapping.addURLPattern(_urlPatterns.get(i));
      }

      _webApp.addServletMapping(mapping);
    }
  }
View Full Code Here

Examples of com.caucho.server.dispatch.ServletMapping.addURLPattern()

      //will use Servlet 3.0
      ServletMapping servletMapping = WebApp.getCurrent()
        .createServletMapping();

      servletMapping.addURLPattern("/caucho.jsf.developer.aid");
      servletMapping.setServletClass(JsfDeveloperAidServlet.class.getName());

      WebApp.getCurrent().addServletMapping(servletMapping);
    }
View Full Code Here

Examples of com.caucho.server.dispatch.ServletMapping.addURLPattern()

    hostConfig.addBuilderProgram(new PropertyValueProgram("web-app", webAppConfig));

    ServletMapping servlet = new ServletMapping();

    servlet.setServletName(_serviceName);
    servlet.addURLPattern("/*");
    servlet.addURLRegexp(".*");
    servlet.setServletClass(ManagementServlet.class.getName());

    ContainerProgram servletInit = new ContainerProgram();
    servletInit.addProgram(new PropertyValueProgram("service", this));
View Full Code Here

Examples of com.caucho.server.security.SecurityConstraint.addURLPattern()

          WebResourceCollection resources = new WebResourceCollection();
          resources.addHttpMethod(httpMethodConstraintElement.getMethodName());

          for (String pattern : patterns) {
            resources.addURLPattern(pattern);
            constraint.addURLPattern(pattern);
          }

          constraint.addWebResourceCollection(resources);

          _constraintManager.addConstraint(constraint);
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.