public class WebListenerBase extends Object implements WebListener
| Constructor and Description |
|---|
WebListenerBase() |
WebListenerBase(String id,
int port) |
| 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 used by 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 which will be used by this WebListener.
|
void |
setWebContainer(WebContainer webContainer)
Sets the WebContainer which will be used by this WebListener.
|
public WebListenerBase()
public WebListenerBase(String id, int port)
public void setId(String id)
setId in interface WebListenerid - for this WebListenerpublic String getId()
getId in interface WebListenerpublic void setConfig(WebListenerConfig config) throws ConfigException, GlassFishException
setConfig in interface WebListenerconfig - 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 restartedpublic WebListenerConfig getConfig()
getConfig in interface WebListenerpublic void setPort(int port)
setPort in interface WebListenerport - the port number for this WebListenerpublic int getPort()
getPort in interface WebListenerpublic void setProtocol(String protocol)
setProtocol in interface WebListenerprotocol - the protocol for this WebListenerpublic String getProtocol()
getProtocol in interface WebListenerpublic void setWebContainer(WebContainer webContainer)
setWebContainer in interface WebListenerpublic WebContainer getWebContainer()
getWebContainer in interface WebListenerCopyright © 2017. All rights reserved.