Package org.jboss.metadata

Examples of org.jboss.metadata.WebMetaData


            realmName=userRealm.getName();
       
        //use a security domain from jboss-web.xml
        if (null==realmName)
        {
            WebMetaData metaData = getJBossWebApplicationContext()._webApp.getMetaData();
            realmName = metaData.getSecurityDomain();
            if (null!=realmName)
            {
                if (realmName.endsWith("/"))
                    realmName = realmName.substring (0, realmName.length());
                int idx = realmName.lastIndexOf('/');
View Full Code Here


            realmName=userRealm.getName();
       
        //use a security domain from jboss-web.xml
        if (null==realmName)
        {
            WebMetaData metaData = getJBossWebApplicationContext()._webApp.getMetaData();
            realmName = metaData.getSecurityDomain();
            if (null!=realmName)
            {
                if (realmName.endsWith("/"))
                    realmName = realmName.substring (0, realmName.length());
                int idx = realmName.lastIndexOf('/');
View Full Code Here

      dep.setRuntimeClassLoader(null);
      dep.setType(getDeploymentType());

      Service service = dep.getService();

      WebMetaData webMetaData = (WebMetaData)di.metaData;
      if (webMetaData == null)
         throw new IllegalStateException("Deployment unit does not contain web meta data");

      WebservicesMetaData wsMetaData = getWebservicesMetaData(di, "WEB-INF/webservices.xml");
      if (wsMetaData == null)
View Full Code Here

      dep.setRuntimeClassLoader(null);
      dep.setType(getDeploymentType());

      Service service = dep.getService();

      WebMetaData webMetaData = (WebMetaData)di.metaData;
      if (webMetaData == null)
         throw new IllegalStateException("Deployment unit does not contain web meta data");

      // Copy the attachments
      dep.addAttachment(WebMetaData.class, webMetaData);
View Full Code Here

         return false;

      boolean isWebServiceDeployment = false;
      try
      {
         WebMetaData webMetaData = (WebMetaData)unit.metaData;
         List<Servlet> servlets = getEndpointBeans(webMetaData, unit.annotationsCl);
         isWebServiceDeployment = servlets.size() > 0;
      }
      catch (Exception ex)
      {
View Full Code Here

{
   public JSEArchiveMetaData buildUnifiedWebMetaData(Deployment dep, DeploymentInfo di)
   {
      String contextRoot = null;
     
      WebMetaData wmd = (WebMetaData)di.metaData;
      dep.addAttachment(WebMetaData.class, wmd);
     
      if (di.parent != null)
      {
         J2eeApplicationMetaData appmd = (J2eeApplicationMetaData)di.parent.metaData;
         if(appmd!=null) // An ESB case, They deploy a *.war inside *.esb
         {
            Iterator it = appmd.getModules();
            while (it.hasNext())
            {
               J2eeModuleMetaData module = (J2eeModuleMetaData)it.next();
               if (module.getFileName().equals(dep.getSimpleName()))
                  contextRoot = module.getWebContext();
            }
         }
      }
     
      if (contextRoot == null)
         contextRoot = wmd.getContextRoot();
     
      JSEArchiveMetaData webMetaData = new JSEArchiveMetaData();
      webMetaData.setContextRoot(contextRoot);
      webMetaData.setServletMappings(wmd.getServletMappings());
      webMetaData.setServletClassNames(getServletClassMap(wmd));
      webMetaData.setConfigName(wmd.getConfigName());
      webMetaData.setConfigFile(wmd.getConfigFile());
      webMetaData.setSecurityDomain(wmd.getSecurityDomain());
      webMetaData.setPublishLocationAdapter(getPublishLocationAdpater(wmd));
      webMetaData.setSecurityMetaData(getSecurityMetaData(wmd.getSecurityContraints()));
     
      return webMetaData;
   }
View Full Code Here

   {

      // JSE endpoints
      if (dep.getAttachment(WebMetaData.class) != null)
      {
         WebMetaData webMetaData = dep.getAttachment(WebMetaData.class);
         ClassLoader classLoader = webMetaData.getContextLoader();
         dep.setRuntimeClassLoader(classLoader);
      }

      // EJB3 endpoints
      else if (dep.getType() == Deployment.DeploymentType.JAXWS_EJB3)
View Full Code Here

TOP

Related Classes of org.jboss.metadata.WebMetaData

Copyright © 2018 www.massapicom. 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.