public interface WebListener
WebContainer for usage example.| Modifier and Type | Method and Description |
|---|---|
WebListenerConfig |
getConfig()
Gets the current configuration of this WebListener.
|
String |
getId()
Gets the id of this WebListener.
|
int |
getPort()
Gets the port number of this WebListener.
|
String |
getProtocol()
Gets the protocol of this WebListener.
|
WebContainer |
getWebContainer()
Gets the WebContainer used by this WebListener.
|
void |
setConfig(WebListenerConfig config)
Reconfigures this WebListener with the given
configuration.
|
void |
setId(String id)
Sets the id for this WebListener.
|
void |
setPort(int port)
Sets the port number for this WebListener.
|
void |
setProtocol(String protocol)
Sets the protocol for this WebListener.
|
void |
setWebContainer(WebContainer webContainer)
Sets the WebContainer which will be used by this WebListener.
|
void setId(String id)
id - for this WebListenerString getId()
void setPort(int port)
port - the port number for this WebListenerint getPort()
void setProtocol(String protocol)
protocol - the protocol for this WebListenerString getProtocol()
void setConfig(WebListenerConfig config) throws ConfigException, GlassFishException
In order for the given configuration to take effect, this WebListener will be stopped and restarted.
config - the configuration to be appliedConfigException - if the configuration requires a restart,
and this WebListener fails to be restartedGlassFishException - if an error occurs,
and this WebListener fails to be restartedWebListenerConfig getConfig()
void setWebContainer(WebContainer webContainer)
WebContainer getWebContainer()
Copyright © 2019. All rights reserved.