Examples of validate()


Examples of org.jboss.identity.federation.core.wstrust.WSTrustRequestHandler.validate()

         else if (requestType.equals(WSTrustConstants.RENEW_REQUEST))
            return this.marshallResponse(handler.renew(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.CANCEL_REQUEST))
            return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST))
            return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal()));
         else
            throw new WSTrustException("Invalid request type: " + requestType);
      }
      catch (WSTrustException we)
      {
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.ra.Connector.validate()

                    cmd = annotator.merge(cmd, repository, classLoader);
            }
            // FIXME: when the connector is null the Iron Jacamar data is ignored
            if (cmd != null) {
                // Validate metadata
                cmd.validate();

                // Merge metadata
                cmd = (new Merger()).mergeConnectorWithCommonIronJacamar(ijmd, cmd);
            }
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.ra.ResourceAdapter.validate()

      //make sure all need metadata parsered and processed after annotation handle
      if (ra == null)
         throw new ValidateException(bundle.noMetadataForResourceAdapter());

      //make sure ra metadata contains inbound or outbound at least
      ra.validate();
   }

   /**
    * Merge metadatas
    * @param inputMd The metadata to merge with this
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.spec.Connector.validate()

                DEPLOYMENT_CONNECTOR_LOGGER.debugf("ParsedRaDeploymentProcessor: Found 0 annotationIndexes");

            // FIXME: when the connector is null the Iron Jacamar data is ignored
            if (cmd != null) {
                // Validate metadata
                cmd.validate();

                // Merge metadata
                cmd = (new Merger()).mergeConnectorWithCommonIronJacamar(activation, cmd);
            }
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.spec.ResourceAdapter.validate()

      ResourceAdapter ra = this.getResourceadapter();

      if (ra == null)
         throw new ValidateException(bundle.noMetadataForResourceAdapter());

      ra.validate();
   }

   /**
    * {@inheritDoc}
    */
 
View Full Code Here

Examples of org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate()

   protected static void deploy(KernelDeployment deployment) throws Throwable
   {
      AbstractKernelDeployer deployer = new AbstractKernelDeployer(createKernel());
      deployer.deploy(deployment);
      deployer.validate();

   }

  
   public static void main(String[] args) throws Throwable
View Full Code Here

Examples of org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.validate()

         BeanXMLDeployer deployer = new BeanXMLDeployer(kernel);
         URL bootstrap = Thread.currentThread().getContextClassLoader().getResource(resource);
         if (bootstrap == null)
            throw new RuntimeException("Cannot find " + resource);
         KernelDeployment deployment = deployer.deploy(bootstrap);
         deployer.validate();
         deployments.add(0, deployment);
      }
      catch (Throwable throwable)
      {
         throwable.printStackTrace();
View Full Code Here

Examples of org.jboss.metadata.parser.util.XMLSchemaValidator.validate()

                if (schemaValidation && webMetaData.getSchemaLocation() != null) {
                    XMLSchemaValidator validator = new XMLSchemaValidator(new XMLResourceResolver());
                    InputStream xmlInput = webXml.openStream();
                    try {
                        if (webMetaData.is23())
                            validator.validate("-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN", xmlInput);
                        else if(webMetaData.is24())
                            validator.validate("http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd", xmlInput);
                        else if (webMetaData.is25())
                            validator.validate("http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd", xmlInput);
                        else if (webMetaData.is30())
View Full Code Here

Examples of org.jboss.metadata.validation.validator.Validator.validate()

      Validator validator = CompleteEjb2xViewValidator.INSTANCE;

      // Validate
      try
      {
         validator.validate(smd.getJBossMetaData());
      }
      // Expected
      catch (ValidationException e)
      {
         // Get the expected error code
View Full Code Here

Examples of org.jboss.metadata.validation.validator.ejb.jboss.AtleastOneBusinessInterfaceValidator.validate()

      AtleastOneBusinessInterfaceValidator validator = new AtleastOneBusinessInterfaceValidator(Thread.currentThread()
            .getContextClassLoader());
      try
      {
         // validate the beans
         validator.validate(metadata);
         // validation should have failed
         fail("Validation of " + BeanWithoutAnyInterfaces.class.getName() + " passed, but was expected to fail");
      }
      catch (ValidationException ve)
      {
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.