| Package | Description |
|---|---|
| com.sun.enterprise.web | |
| org.glassfish.embeddable.web |
Provides classes and interfaces necessary to programmatically configure embedded WebContainer
and create contexts, virtual servers, and web listeners.
|
| org.glassfish.web.embed.impl |
| Modifier and Type | Method and Description |
|---|---|
Context |
VirtualServer.getContext(String contextRoot)
Finds the Context registered at the given context root.
|
Context |
VirtualServerFacade.getContext(String contextRoot)
Finds the Context registered at the given context root.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Context> |
VirtualServer.getContexts()
Gets the collection of Context instances registered with
this VirtualServer.
|
Collection<Context> |
VirtualServerFacade.getContexts()
Gets the collection of Context instances registered with
this VirtualServer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
VirtualServer.addContext(Context context,
String contextRoot)
Registers the given Context with this VirtualServer
at the given context root.
|
void |
VirtualServerFacade.addContext(Context context,
String contextRoot)
Registers the given Context with this VirtualServer
at the given context root.
|
void |
VirtualServer.removeContext(Context context)
Stops the given context and removes it from this
VirtualServer.
|
void |
VirtualServerFacade.removeContext(Context context)
Stops the given context and removes it from this
VirtualServer.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
WebContainer.createContext(File docRoot)
Creates a Context and configures it with the given
docroot and classloader.
|
Context |
WebContainer.createContext(File docRoot,
ClassLoader classLoader)
Creates a Context and configures it with the given
docroot and classloader.
|
Context |
WebContainer.createContext(File docRoot,
String contextRoot,
ClassLoader classLoader)
Creates a Context, configures it with the given
docroot and classloader, and registers it with all
VirtualServer.
|
Context |
VirtualServer.getContext(String contextRoot)
Finds the Context registered at the given context root.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Context> |
VirtualServer.getContexts()
Gets the collection of Context instances registered with
this VirtualServer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
VirtualServer.addContext(Context context,
String contextRoot)
Registers the given Context with this VirtualServer
at the given context root.
|
void |
WebContainer.addContext(Context context,
String contextRoot)
Registers the given Context with all VirtualServer
at the given context root.
|
void |
VirtualServer.removeContext(Context context)
Stops the given context and removes it from this
VirtualServer.
|
void |
WebContainer.removeContext(Context context)
Stops the given Context and removes it from all
VirtualServer.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
WebContainerImpl.createContext(File docRoot)
Creates a Context and configures it with the given
docroot and classloader.
|
Context |
WebContainerImpl.createContext(File docRoot,
ClassLoader classLoader)
Creates a Context and configures it with the given
docroot and classloader.
|
Context |
WebContainerImpl.createContext(File docRoot,
String contextRoot,
ClassLoader classLoader)
Creates a Context, configures it with the given
docroot and classloader, and registers it with all
VirtualServer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WebContainerImpl.addContext(Context context,
String contextRoot)
Registers the given Context with all VirtualServer
at the given context root.
|
void |
WebContainerImpl.removeContext(Context context)
Stops the given Context and removes it from all
VirtualServer.
|
Copyright © 2017. All rights reserved.