Examples of JSEArchiveMetaData


Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

    * @return universal JSE meta data model
    */
   JSEArchiveMetaData create(final Deployment dep)
   {
      final JBossWebMetaData jbossWebMD = WSHelper.getRequiredAttachment(dep, JBossWebMetaData.class);
      final JSEArchiveMetaData jseArchiveMD = new JSEArchiveMetaData();

      // set context root
      final String contextRoot = this.getContextRoot(dep, jbossWebMD);
      jseArchiveMD.setContextRoot(contextRoot);

      // set servlet url patterns mappings
      final Map<String, String> servletMappings = this.getServletUrlPatternsMappings(jbossWebMD);
      jseArchiveMD.setServletMappings(servletMappings);

      // set servlet class names mappings
      final Map<String, String> servletClassNamesMappings = this.getServletClassMappings(jbossWebMD);
      jseArchiveMD.setServletClassNames(servletClassNamesMappings);

      // set security domain
      final String securityDomain = jbossWebMD.getSecurityDomain();
      jseArchiveMD.setSecurityDomain(securityDomain);

      // set wsdl location resolver
      final PublishLocationAdapter resolver = new PublishLocationAdapterImpl(jbossWebMD.getWebserviceDescriptions());
      jseArchiveMD.setPublishLocationAdapter(resolver);

      // set security meta data
      final List<JSESecurityMetaData> jseSecurityMDs = this.getSecurityMetaData(jbossWebMD.getSecurityConstraints());
      jseArchiveMD.setSecurityMetaData(jseSecurityMDs);

      // set config name and file
      this.setConfigNameAndFile(jseArchiveMD, jbossWebMD);

      return jseArchiveMD;
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

   public void start(final Deployment dep)
   {
      if (WSHelper.isJseDeployment(dep))
      {
         this.log.debug("Creating JBoss agnostic JSE meta data for deployment: " + dep.getSimpleName());
         final JSEArchiveMetaData jseMetaData = this.metaDataBuilderJSE.create(dep);
         dep.addAttachment(JSEArchiveMetaData.class, jseMetaData);
      }
      else if (WSHelper.isJaxwsEjbDeployment(dep))
      {
         this.log.debug("Creating JBoss agnostic EJB3 meta data for deployment: " + dep.getSimpleName());
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

    @Override
    public void start(final Deployment dep) {
        if (WSHelper.isJaxwsJseDeployment(dep)) {
            if (WSHelper.hasAttachment(dep, JBossWebMetaData.class)) {
                ROOT_LOGGER.creatingDeployment("JAXWS", "POJO", dep.getSimpleName());
                final JSEArchiveMetaData jseMetaData = jaxwsPojoMDBuilder.create(dep);
                dep.addAttachment(JSEArchiveMetaData.class, jseMetaData);
            }
        }
        if (WSHelper.isJaxwsEjbDeployment(dep)) {
            ROOT_LOGGER.creatingDeployment("JAXWS", "EJB", dep.getSimpleName());
            final EJBArchiveMetaData ejbMetaData = jaxwsEjbMDBuilder.create(dep);
            dep.addAttachment(EJBArchiveMetaData.class, ejbMetaData);
        }
        else if (WSHelper.isJaxrpcJseDeployment(dep)) {
            ROOT_LOGGER.creatingDeployment("JAXRPC", "POJO", dep.getSimpleName());
            final JSEArchiveMetaData jseMetaData = jaxrpcPojoMDBuilder.create(dep);
            dep.addAttachment(JSEArchiveMetaData.class, jseMetaData);
        }
        else if (WSHelper.isJaxrpcEjbDeployment(dep)) {
            ROOT_LOGGER.creatingDeployment("JAXRPC", "EJB", dep.getSimpleName());
            final EJBArchiveMetaData ejbMetaData = jaxrpcEjbMDBuilder.create(dep);
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

    protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData ejbArchiveMD) {
        if (!WSHelper.isJaxwsJseDeployment(dep)) { // [AS7-1605] support
            final JBossWebMetaData jbossWebMD = WSHelper.getOptionalAttachment(dep, JBossWebMetaData.class);
            final String contextRoot = getContextRoot(dep, jbossWebMD);
            if (contextRoot != null) {
                final JSEArchiveMetaData jseArchiveMD = new JSEArchiveMetaData();
                jseArchiveMD.setContextRoot(contextRoot);
                dep.addAttachment(JSEArchiveMetaData.class, jseArchiveMD);
            }
        }

        final JAXWSDeployment jaxwsDeployment = WSHelper.getRequiredAttachment(dep, JAXWSDeployment.class);
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

    JSEArchiveMetaData create(final Deployment dep) {
        ROOT_LOGGER.creatingPojoDeployment(dep.getSimpleName());
        final JBossWebMetaData jbossWebMD = WSHelper.getRequiredAttachment(dep, JBossWebMetaData.class);
        final DeploymentUnit unit = WSHelper.getRequiredAttachment(dep, DeploymentUnit.class);
        final List<POJOEndpoint> pojoEndpoints = getPojoEndpoints(unit);
        final JSEArchiveMetaData jseArchiveMD = new JSEArchiveMetaData();

        // set context root
        final String contextRoot = getContextRoot(dep, jbossWebMD);
        jseArchiveMD.setContextRoot(contextRoot);
        ROOT_LOGGER.settingContextRoot(contextRoot);

        // set servlet url patterns mappings
        final Map<String, String> servletMappings = getServletUrlPatternsMappings(jbossWebMD, pojoEndpoints);
        jseArchiveMD.setServletMappings(servletMappings);

        // set servlet class names mappings
        final Map<String, String> servletClassNamesMappings = getServletClassMappings(jbossWebMD, pojoEndpoints);
        jseArchiveMD.setServletClassNames(servletClassNamesMappings);

        // set security domain
        final String securityDomain = jbossWebMD.getSecurityDomain();
        jseArchiveMD.setSecurityDomain(securityDomain);

        // set wsdl location resolver
        final JBossWebservicesMetaData jbossWebservicesMD = WSHelper.getOptionalAttachment(dep, JBossWebservicesMetaData.class);
        if (jbossWebservicesMD != null) {
            final PublishLocationAdapter resolver = new PublishLocationAdapterImpl(jbossWebservicesMD.getWebserviceDescriptions());
            jseArchiveMD.setPublishLocationAdapter(resolver);
        }

        // set security meta data
        final List<JSESecurityMetaData> jseSecurityMDs = getSecurityMetaData(jbossWebMD.getSecurityConstraints());
        jseArchiveMD.setSecurityMetaData(jseSecurityMDs);

        // set config name and file
        setConfigNameAndFile(jseArchiveMD, jbossWebMD, jbossWebservicesMD);

        return jseArchiveMD;
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

   protected String getExplicitPattern(Deployment dep, Endpoint ep)
   {
      String urlPattern = null;

      // #1 For JSE lookup the url-pattern from the servlet mappings
      JSEArchiveMetaData webMetaData = dep.getAttachment(JSEArchiveMetaData.class);
      if (webMetaData != null)
      {
         String epName = ep.getShortName();
         urlPattern = webMetaData.getServletMappings().get(epName);
         if (urlPattern == null)
            throw new IllegalStateException("Cannot obtain servlet mapping for: " + epName);
      }

      // #2 Use the explicit urlPattern from port-component/port-component-uri
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

   protected String getExplicitContextRoot(Deployment dep)
   {
      String contextRoot = null;

      // #1 Use the explicit context root from the web meta data
      JSEArchiveMetaData webMetaData = dep.getAttachment(JSEArchiveMetaData.class);
      if (webMetaData != null)
         contextRoot = webMetaData.getContextRoot();

      // #2 Use the explicit context root from @WebContext.contextRoot
      if (contextRoot == null)
      {
         for (Endpoint ep : dep.getService().getEndpoints())
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

      try
      {
         // JSE endpoints
         if (unit.getAttachment(JBossWebMetaData.class) != null)
         {
            JSEArchiveMetaData webMetaData = webMetaDataAdapter.buildMetaData(dep, unit);
            if (webMetaData != null)
               dep.addAttachment(JSEArchiveMetaData.class, webMetaData);

            if (dep instanceof ArchiveDeployment)
            {
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

      }
     
      if (contextRoot == null)
         contextRoot = jbossWebMetaData.getContextRoot();
     
      JSEArchiveMetaData umd = new JSEArchiveMetaData();
      umd.setContextRoot(contextRoot);
      umd.setServletMappings(getServletMappings(jbossWebMetaData));
      umd.setServletClassNames(getServletClassMap(jbossWebMetaData));
      umd.setSecurityDomain(jbossWebMetaData.getSecurityDomain());
      umd.setPublishLocationAdapter(getPublishLocationAdpater(jbossWebMetaData));
      umd.setSecurityMetaData(getSecurityMetaData(jbossWebMetaData.getSecurityContraints()));

      setConfigNameAndFile(umd, jbossWebMetaData);
     
      return umd;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData

   protected boolean isConfidentialTransportGuarantee(Deployment dep, Endpoint ep)
   {
      String transportGuarantee = null;
      if (DeploymentType.JAXWS_JSE == dep.getType())
      {
         JSEArchiveMetaData webMetaData = dep.getAttachment(JSEArchiveMetaData.class);
         if (webMetaData != null)
         {
            String servletLink = ep.getShortName();
            Map<String, String> servletMappings = webMetaData.getServletMappings();
            String urlPattern = servletMappings.get(servletLink);
  
            if (urlPattern == null)
               throw new RuntimeException("Cannot find <url-pattern> for servlet-name: " + servletLink);
  
            List<JSESecurityMetaData> securityList = webMetaData.getSecurityMetaData();
            for (JSESecurityMetaData currentSecurity : securityList)
            {
               if (currentSecurity.getTransportGuarantee() != null && currentSecurity.getTransportGuarantee().length() > 0)
               {
                  for (JSEResourceCollection currentCollection : currentSecurity.getWebResources())
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.