Tabnine Logo
ManagementClient.toContextName
Code IndexAdd Tabnine to your IDE (free)

How to use
toContextName
method
in
org.jboss.as.arquillian.container.ManagementClient

Best Java code snippets using org.jboss.as.arquillian.container.ManagementClient.toContextName (Showing top 4 results out of 315)

origin: org.jboss.as/jboss-as-arquillian-common

private void extractWebArchiveContexts(HTTPContext context, String deploymentName, ModelNode deploymentNode) {
  if (deploymentNode.hasDefined(SUBSYSTEM)) {
    ModelNode subsystem = deploymentNode.get(SUBSYSTEM);
    if (subsystem.hasDefined(WEB)) {
      ModelNode webSubSystem = subsystem.get(WEB);
      if (webSubSystem.isDefined() && webSubSystem.hasDefined("context-root")) {
        final String contextName = webSubSystem.get("context-root").asString();
        if (webSubSystem.hasDefined(SERVLET)) {
          for (final ModelNode servletNode : webSubSystem.get(SERVLET).asList()) {
            for (final String servletName : servletNode.keys()) {
              context.add(new Servlet(servletName, toContextName(contextName)));
            }
          }
        }
        /*
         * This is a WebApp, it has some form of webcontext whether it has a
         * Servlet or not. AS7 does not expose jsp / default servlet in mgm api
         */
        context.add(new Servlet("default", toContextName(contextName)));
      }
    }
  }
}
origin: org.wildfly/wildfly-arquillian-common

private void extractWebArchiveContexts(HTTPContext context, String deploymentName, ModelNode deploymentNode) {
  if (deploymentNode.hasDefined(SUBSYSTEM)) {
    ModelNode subsystem = deploymentNode.get(SUBSYSTEM);
    if (subsystem.hasDefined(UNDERTOW)) {
      ModelNode webSubSystem = subsystem.get(UNDERTOW);
      if (webSubSystem.isDefined() && webSubSystem.hasDefined("context-root")) {
        final String contextName = webSubSystem.get("context-root").asString();
        if (webSubSystem.hasDefined(SERVLET)) {
          for (final ModelNode servletNode : webSubSystem.get(SERVLET).asList()) {
            for (final String servletName : servletNode.keys()) {
              context.add(new Servlet(servletName, toContextName(contextName)));
            }
          }
        }
        /*
         * This is a WebApp, it has some form of webcontext whether it has a
         * Servlet or not. AS7 does not expose jsp / default servlet in mgm api
         */
        context.add(new Servlet("default", toContextName(contextName)));
      }
    }
  }
}
origin: org.wildfly.arquillian/wildfly-arquillian-common

private void extractWebArchiveContexts(HTTPContext context, ModelNode deploymentNode) {
  if (deploymentNode.isDefined() && deploymentNode.hasDefined("context-root")) {
    final String contextName = toContextName(deploymentNode.get("context-root").asString());
    if (deploymentNode.hasDefined(SERVLET)) {
      for (final ModelNode servletNode : deploymentNode.get(SERVLET).asList()) {
        for (final String servletName : servletNode.keys()) {
          context.add(new Servlet(servletName, contextName));
        }
      }
    }
    /*
     * This is a WebApp, it has some form of webcontext whether it has a
     * Servlet or not. AS7 does not expose jsp / default servlet in mgm api
     */
    context.add(new Servlet("default", contextName));
  }
}
origin: wildfly/wildfly-arquillian

private void extractWebArchiveContexts(HTTPContext context, ModelNode deploymentNode) {
  if (deploymentNode.isDefined() && deploymentNode.hasDefined("context-root")) {
    final String contextName = toContextName(deploymentNode.get("context-root").asString());
    if (deploymentNode.hasDefined(SERVLET)) {
      for (final ModelNode servletNode : deploymentNode.get(SERVLET).asList()) {
        for (final String servletName : servletNode.keys()) {
          context.add(new Servlet(servletName, contextName));
        }
      }
    }
    /*
     * This is a WebApp, it has some form of webcontext whether it has a
     * Servlet or not. AS7 does not expose jsp / default servlet in mgm api
     */
    context.add(new Servlet("default", contextName));
  }
}
org.jboss.as.arquillian.containerManagementClienttoContextName

Popular methods of ManagementClient

  • getControllerClient
    Returns the client used to connect to the server.
  • <init>
  • close
  • checkSuccessful
  • defined
  • executeForResult
  • extractEnterpriseArchiveContexts
    Expects the deploymentNode to bit a list of addresses which contain a result of the subsystem model.
  • extractWebArchiveContexts
  • getConnection
  • getProtocolMetaData
    Gets the meta-data.
  • getRemoteEjbURL
    Returns the URI for EJB's.
  • getRemoteJMXURL
  • getRemoteEjbURL,
  • getRemoteJMXURL,
  • getWebUri,
  • isEnterpriseArchive,
  • isWebArchive,
  • createDeploymentAddress,
  • getBinding,
  • isServerInRunningState,
  • readResource

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now