Search in sources :

Example 6 with ContextRootInfo

use of org.glassfish.grizzly.config.ContextRootInfo in project Payara by payara.

the class ContainerMapper method register.

public void register(String contextRoot, Collection<String> vs, HttpHandler httpService, ApplicationContainer container) {
    if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, "MAPPER({0}) REGISTER contextRoot: {1} adapter: {2} container: {3} port: {4}", new Object[] { this, contextRoot, httpService, container, String.valueOf(listener.getPort()) });
    }
    mapMultipleAdapter = true;
    ContextRootInfo c = new ContextRootInfo(httpService, container);
    for (String host : vs) {
        mapper.addContext(host, contextRoot, c, new String[0], null);
    /*
            if (adapter instanceof StaticResourcesAdapter) {
            mapper.addWrapper(host, ctx, wrapper, c);
            }
             */
    }
}
Also used : ContextRootInfo(org.glassfish.grizzly.config.ContextRootInfo)

Aggregations

ContextRootInfo (org.glassfish.grizzly.config.ContextRootInfo)6 ContainerMapper (com.sun.enterprise.v3.services.impl.ContainerMapper)1 BindException (java.net.BindException)1 MalformedURLException (java.net.MalformedURLException)1 NamingException (javax.naming.NamingException)1 LifecycleException (org.apache.catalina.LifecycleException)1 Sniffer (org.glassfish.api.container.Sniffer)1 Mapper (org.glassfish.grizzly.http.server.util.Mapper)1 MappingData (org.glassfish.grizzly.http.server.util.MappingData)1 DataChunk (org.glassfish.grizzly.http.util.DataChunk)1 ContextMapper (org.glassfish.internal.grizzly.ContextMapper)1 ObservableBean (org.jvnet.hk2.config.ObservableBean)1