Package io.undertow.servlet.api

Examples of io.undertow.servlet.api.DeploymentInfo.addInitParameter()


        deploymentInfo.addServlets(getResteasyServlet());
        deploymentInfo.addListener(getResteasyListener());
        deploymentInfo.addListener(getRestATListener());

        for (Entry<String, String> entry : initialParameters.entrySet()) {
            deploymentInfo.addInitParameter(entry.getKey(), entry.getValue());
        }

        return deploymentInfo;
    }
View Full Code Here


                }

            }
            if (mergedMetaData.getContextParams() != null) {
                for (ParamValueMetaData param : mergedMetaData.getContextParams()) {
                    d.addInitParameter(param.getParamName(), param.getParamValue());
                }
            }

            if (mergedMetaData.getWelcomeFileList() != null &&
                    mergedMetaData.getWelcomeFileList().getWelcomeFiles() != null) {
View Full Code Here

   public void doTestInputViolations(String suppress, String fieldPath, String propertyPath, String classPath, String parameterPath) throws Exception
   {
      DeploymentInfo di = server.undertowDeployment(TestApplication.class);
      if (suppress != null)
      {
         di.addInitParameter("resteasy.validation.suppress.path", suppress)
      }
      di.setDeploymentName("validate");
      di.setContextPath("/validate");
      server.deploy(di);
      Client client = ClientBuilder.newClient();
View Full Code Here

   public void doTestReturnValueViolations(String suppress, String returnValuePath) throws Exception
   {
      DeploymentInfo di = server.undertowDeployment(TestApplication.class);
      if (suppress != null)
      {
         di.addInitParameter("resteasy.validation.suppress.path", suppress)
      }
      di.setDeploymentName("validate");
      di.setContextPath("/validate");
      server.deploy(di);
      Client client = ClientBuilder.newClient();
View Full Code Here

   public void doTestInputViolations(String suppress, String fieldPath, String propertyPath, String classPath, String parameterPath) throws Exception
   {
      DeploymentInfo di = server.undertowDeployment(TestApplication.class);
      if (suppress != null)
      {
         di.addInitParameter("resteasy.validation.suppress.path", suppress)
      }
      di.setDeploymentName("validate");
      di.setContextPath("/validate");
      server.deploy(di);
      Client client = ClientBuilder.newClient();
View Full Code Here

   public void doTestReturnValueViolations(String suppress, String returnValuePath) throws Exception
   {
      DeploymentInfo di = server.undertowDeployment(TestApplication.class);
      if (suppress != null)
      {
         di.addInitParameter("resteasy.validation.suppress.path", suppress)
      }
      di.setDeploymentName("validate");
      di.setContextPath("/validate");
      server.deploy(di);
      Client client = ClientBuilder.newClient();
View Full Code Here

    public void deployApplication(String name, String contextPath, Class<? extends Servlet> servletClass, String adapterConfigPath, String role, boolean isConstrained, Class<? extends KeycloakConfigResolver> keycloakConfigResolver) {
        String constraintUrl = "/*";
        DeploymentInfo di = createDeploymentInfo(name, contextPath, servletClass);
        if (null == keycloakConfigResolver) {
            di.addInitParameter("keycloak.config.file", adapterConfigPath);
        } else {
            di.addInitParameter("keycloak.config.resolver", keycloakConfigResolver.getCanonicalName());
        }
        if (isConstrained) {
            SecurityConstraint constraint = new SecurityConstraint();
View Full Code Here

        String constraintUrl = "/*";
        DeploymentInfo di = createDeploymentInfo(name, contextPath, servletClass);
        if (null == keycloakConfigResolver) {
            di.addInitParameter("keycloak.config.file", adapterConfigPath);
        } else {
            di.addInitParameter("keycloak.config.resolver", keycloakConfigResolver.getCanonicalName());
        }
        if (isConstrained) {
            SecurityConstraint constraint = new SecurityConstraint();
            WebResourceCollection collection = new WebResourceCollection();
            collection.addUrlPattern(constraintUrl);
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.