Examples of WebServiceDeclaration


Examples of org.jboss.as.webservices.metadata.WebServiceDeclaration

        final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
        String securityDomain = null;
        final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();

        while (ejbContainers.hasNext()) {
            final WebServiceDeclaration ejbContainer = ejbContainers.next();
            //final SecurityDomain nextSecurityDomain = ejbContainer.getAnnotation(SecurityDomain.class);
            final AnnotationInstance nextSecurityDomain = ejbContainer.getAnnotation(SECURITY_DOMAIN_DOT_NAME);

            securityDomain = getDomain(securityDomain, nextSecurityDomain);
        }

        // return super.appendJaasPrefix(securityDomain); TODO: properly removed?
View Full Code Here

Examples of org.jboss.as.webservices.metadata.WebServiceDeclaration

        final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
        final SecurityRolesMetaData securityRolesMD = new SecurityRolesMetaData();
        final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();

        while (ejbContainers.hasNext()) {
            final WebServiceDeclaration ejbContainer = ejbContainers.next();
            //final RolesAllowed allowedRoles = ejbContainer.getAnnotation(RolesAllowed.class);
            final AnnotationInstance allowedRoles = ejbContainer.getAnnotation(ROLES_ALLOWED_DOT_NAME);
            final boolean hasAllowedRoles = allowedRoles != null;

            if (hasAllowedRoles) {
                for (final String roleName : allowedRoles.value().asStringArray()) {
                    final SecurityRoleMetaData securityRoleMD = new SecurityRoleMetaData();
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration

      final List<WebServiceDeclaration> endpoints = new ArrayList<WebServiceDeclaration>();

      final Iterator<WebServiceDeclaration> ejbIterator = wsDeployment.getServiceEndpoints().iterator();
      while (ejbIterator.hasNext())
      {
         final WebServiceDeclaration ejbContainer = ejbIterator.next();
         if (ASHelper.isWebServiceBean(ejbContainer))
         {
            endpoints.add(ejbContainer);
         }
      }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration

      String securityDomain = null;
      final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();

      while (ejbContainers.hasNext())
      {
         final WebServiceDeclaration ejbContainer = ejbContainers.next();
         final SecurityDomain nextSecurityDomain = ejbContainer.getAnnotation(SecurityDomain.class);

         securityDomain = this.getDomain(securityDomain, nextSecurityDomain);
      }

      return super.appendJaasPrefix(securityDomain);
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration

      final SecurityRolesMetaData securityRolesMD = new SecurityRolesMetaData();
      final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();

      while (ejbContainers.hasNext())
      {
         final WebServiceDeclaration ejbContainer = ejbContainers.next();
         final RolesAllowed allowedRoles = ejbContainer.getAnnotation(RolesAllowed.class);
         final boolean hasAllowedRoles = allowedRoles != null;

         if (hasAllowedRoles)
         {
            for (final String roleName : allowedRoles.value())
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration

      WebServiceDeployment apiAdapter = WebServiceDeploymentApiAdapter.createInstance(ejb3Deployment);
      Iterator<WebServiceDeclaration> it = apiAdapter.getServiceEndpoints().iterator();
      while (it.hasNext())
      {
         WebServiceDeclaration container = it.next();
         if (isWebServiceBean(container))
         {
            String ejbName = container.getComponentName();
            String epBean = container.getComponentClassName();

            // Create the endpoint
            Endpoint ep = newEndpoint(epBean);
            ep.setShortName(ejbName);
            service.addEndpoint(ep);
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration

      WebServiceDeployment apiAdapter = WebServiceDeploymentApiAdapter.createInstance(ejb3Deployment);
      Iterator<WebServiceDeclaration> it = apiAdapter.getServiceEndpoints().iterator();
      while (it.hasNext())
      {
         WebServiceDeclaration container = it.next();
         if (isWebServiceBean(container))
         {
            isWebServiceDeployment = true;
            break;
         }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration

   {
      List<EJBMetaData> ejbMetaDataList = new ArrayList<EJBMetaData>();
      Iterator<WebServiceDeclaration> it = ejb3Deployment.getServiceEndpoints().iterator();
      while (it.hasNext())
      {
         WebServiceDeclaration container = it.next();

         // TODO: Add PortComponent parsing to EJBDescriptorHandler
         PortComponentSpec pcMetaData = container.getAnnotation(PortComponentSpec.class);
         MessageDriven mdbMetaData = container.getAnnotation(MessageDriven.class);

         EJBMetaData ejbMetaData = null;

         if(mdbMetaData!=null)
         {
            ejbMetaData = new MDBMetaData();

            ActivationConfigProperty[] props = mdbMetaData.activationConfig();
            if (props != null)
            {
               String destination = getActivationProperty("destination", props);
               if (destination != null)
               {                 
                  ((MDBMetaData)ejbMetaData).setDestinationJndiName(destination);
               }
            }
         }
         else
         {
            ejbMetaData = new SLSBMetaData();
         }

         if (ejbMetaData != null)
         {
            ejbMetaData.setEjbName(container.getComponentName());
            ejbMetaData.setEjbClass(container.getComponentClassName());

            if (pcMetaData != null)
            {
               ejbMetaData.setPortComponentName(pcMetaData.portComponentName());
               ejbMetaData.setPortComponentURI(pcMetaData.portComponentURI());
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration

      {
         WebServiceDeployment apiAdapter = WebServiceDeploymentApiAdapter.createInstance(ejb3Deployment);
         Iterator<WebServiceDeclaration> it = apiAdapter.getServiceEndpoints().iterator();
         while (it.hasNext())
         {
            WebServiceDeclaration container = it.next();
            SecurityDomain anSecurityDomain = container.getAnnotation(SecurityDomain.class);
            if (anSecurityDomain != null)
            {
               if (securityDomain != null && !securityDomain.equals(anSecurityDomain.value()))
                  throw new IllegalStateException("Multiple security domains not supported");
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration

      {
         WebServiceDeployment apiAdapter = WebServiceDeploymentApiAdapter.createInstance(ejb3Deployment);
         Iterator<WebServiceDeclaration> it = apiAdapter.getServiceEndpoints().iterator();
         while (it.hasNext())
         {
            WebServiceDeclaration container = it.next();
            RolesAllowed anRolesAllowed = container.getAnnotation(RolesAllowed.class);
            if (anRolesAllowed != null)
            {
               SecurityRolesMetaData securityRoles = webApp.getSecurityRoles();
               for (String roleName : anRolesAllowed.value())
               {
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.