@Service(name="com.sun.enterprise.web.EmbeddedWebContainer") @Singleton public final class EmbeddedWebContainer extends Embedded implements org.glassfish.hk2.api.PostConstruct
| Modifier and Type | Field and Description |
|---|---|
static Logger |
logger |
authenticators, await, embeddedDirectoryListing, engines, info, lifecycle, log, rb, realm, socketFactory, started, useNamingconnectors, connectorsMonitor, container, debug, domain, initialized, oname, supportAFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
EmbeddedWebContainer() |
| Modifier and Type | Method and Description |
|---|---|
Connector |
createConnector(String address,
int port,
String protocol)
Create a customized version of the Tomcat's 5 Coyote Connector.
|
Context |
createContext(String id,
String ctxPath,
File location,
String defaultContextXmlLocation,
String defaultWebXmlLocation,
boolean useDOLforDeployment,
WebModuleConfig wmInfo)
Create a web module/application.
|
Engine |
createEngine()
Create, configure, and return an Engine that will process all
HTTP requests received from one of the associated Connectors,
based on the specified properties.
|
Host |
createHost(String vsID,
VirtualServer vsBean,
String vsDocroot,
String vsLogFile,
MimeMap vsMimeMap)
Creates a virtual server.
|
Connector[] |
getConnectors()
Returns the list of Connector objects associated with this
EmbeddedWebContainer.
|
Engine[] |
getEngines()
Return the list of engines created (from Embedded API)
|
void |
postConstruct() |
addAuthenticator, addConnector, addEngine, addLifecycleListener, createConnector, createConnector, createConnector, createContext, createHost, createLoader, destroy, findLifecycleListeners, getCatalinaBase, getCatalinaHome, getInfo, getLogger, getRealm, getSocketFactory, initDirs, initNaming, isAwait, isDirectoryListing, isUseNaming, removeContext, removeEngine, removeHost, removeLifecycleListener, setAwait, setCatalinaBase, setCatalinaHome, setDirectoryListing, setLogger, setRealm, setSecurityProtection, setSocketFactory, setUseNaming, start, stopaddPropertyChangeListener, findConnector, findConnectors, getBroadcaster, getConnectorNames, getContainer, getContainerName, getDebug, getDomain, getName, getObjectName, getServer, init, initialize, removeConnector, removePropertyChangeListener, setBroadcaster, setContainer, setDebug, setName, setServer, toStringpublic static final Logger logger
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic Host createHost(String vsID, VirtualServer vsBean, String vsDocroot, String vsLogFile, MimeMap vsMimeMap)
vsID - Virtual server idvsBean - Bean corresponding to virtual-server element in domain.xmlvsDocroot - Virtual server docrootvsMimeMap - Virtual server MIME mappingspublic Context createContext(String id, String ctxPath, File location, String defaultContextXmlLocation, String defaultWebXmlLocation, boolean useDOLforDeployment, WebModuleConfig wmInfo)
ctxPath - Context path for the web modulelocation - Absolute pathname to the web module directorydefaultWebXmlLocation - Location of default-web.xmlpublic Engine[] getEngines()
getEngines in class Embeddedpublic Connector[] getConnectors()
public Connector createConnector(String address, int port, String protocol)
createConnector in class Embeddedaddress - InetAddress to bind to, or null if the
connector is supposed to bind to all addresses on this serverport - Port number to listen toprotocol - the http protocol to use.public Engine createEngine()
createEngine in class EmbeddedCopyright © 2017. All rights reserved.