Package org.jboss.arquillian.spi.client.protocol.metadata

Examples of org.jboss.arquillian.spi.client.protocol.metadata.ProtocolMetaData


   public void shouldBeAbleToExtractData() throws Exception
   {
      InitialContext ctx = createContext();
      ProfileService profile = (ProfileService) ctx.lookup("ProfileService");

      ProtocolMetaData metaData = ManagementViewParser.parse("test.war", profile);
     
      Assert.assertNotNull(metaData);
     
      HTTPContext context = metaData.getContext(HTTPContext.class);
      Assert.assertNotNull(context);
     
      Assert.assertEquals("127.0.0.1", context.getHost());
      Assert.assertEquals(8080, context.getPort());
     
View Full Code Here


         for(ServletHolder servlet : wctx.getServletHandler().getServlets())
         {
            httpContext.add(new Servlet(servlet.getName(), wctx.getContextPath()));
         }
        
         return new ProtocolMetaData()
            .addContext(httpContext);
      }
      catch (Exception e)
      {
         throw new DeploymentException("Could not deploy " + archive.getName(), e);
View Full Code Here

      catch (Exception ex)
      {
         throw new DeploymentException("Cannot deploy: " + archive, ex);
      }
     
      return new ProtocolMetaData();
   }
View Full Code Here

*/
public final class ManagementViewParser
{
   public static ProtocolMetaData parse(String archiveName, ProfileService profile) throws Exception
   {
      ProtocolMetaData metaData = new ProtocolMetaData();

      ManagementView management = profile.getViewManager();
      management.load();

      // extract server info
      HTTPContext httpContext = extractHTTPContext(management);
      if (httpContext != null)
      {
         metaData.addContext(httpContext);
      }

      // extract deployment content
      scanDeployment(management, httpContext, management.getDeployment(archiveName));

View Full Code Here

      {
         throw new DeploymentException("Could not create the application", ne);
      }

      // Invoke locally
      return new ProtocolMetaData();
   }
View Full Code Here

public final class ManagementViewParser
{
   public static ProtocolMetaData parse(String archiveName, ProfileService profile)
      throws Exception
   {
      ProtocolMetaData metaData = new ProtocolMetaData();
     
      ManagementView management = profile.getViewManager();
      management.load();

      // extract server info
      HTTPContext httpContext = extractHTTPContext(management);
      if(httpContext != null)
      {
         metaData.addContext(httpContext);
      }
     
      // extract deployment content
      scanDeployment(management, httpContext, management.getDeployment(archiveName));
View Full Code Here

               ADDRESS,
               configuration.getBindHttpPort());
        
         findServlets(httpContext, deploymentName);
        
         return new ProtocolMetaData()
               .addContext(httpContext);
      }
      catch (GlassFishException e)
      {
         throw new DeploymentException("Could not probe GlassFish embedded for environment", e);
View Full Code Here

         for(ServletHolder servlet : wctx.getServletHandler().getServlets())
         {
            httpContext.add(new Servlet(servlet.getName(), wctx.getContextPath()));
         }
        
         return new ProtocolMetaData()
            .addContext(httpContext);
      }
      catch (Exception e)
      {
         throw new DeploymentException("Could not deploy " + archive.getName(), e);
View Full Code Here

      {
         throw new DeploymentException("Could not create the application", ne);
      }

      // Invoke locally
      return new ProtocolMetaData();
   }
View Full Code Here

      }

      lifecycleProducer.set(lifecycle);
      beanManagerProducer.set(lifecycle.getBeanManager());
     
      return new ProtocolMetaData();
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spi.client.protocol.metadata.ProtocolMetaData

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.