public class MapperListener extends Object implements NotificationListener, NotificationFilter
| Modifier and Type | Field and Description |
|---|---|
HttpService |
httpService |
protected static Logger |
logger |
protected org.glassfish.grizzly.http.server.util.Mapper |
mapper |
protected static ResourceBundle |
rb |
| Constructor and Description |
|---|
MapperListener(org.glassfish.grizzly.http.server.util.Mapper mapper,
WebContainer webContainer)
Create mapper listener.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultHost() |
String |
getDomain() |
String |
getNetworkListenerName() |
void |
handleNotification(Notification notification,
Object handback) |
void |
init()
Initialize associated mapper.
|
boolean |
isNotificationEnabled(Notification notification)
Filters out any notifications corresponding to MBeans belonging to
a different server instance than the server instance on which this
MapperListener is running.
|
void |
registerHost(StandardHost host)
Register host.
|
void |
setDefaultHost(String defaultHost) |
void |
setDomain(String domain) |
void |
setInstanceName(String instanceName) |
void |
setNetworkListenerName(String networkListenerName) |
void |
unregisterHost(ObjectName objectName)
Unregister host.
|
public transient HttpService httpService
protected static final Logger logger
protected static final ResourceBundle rb
protected transient org.glassfish.grizzly.http.server.util.Mapper mapper
public MapperListener(org.glassfish.grizzly.http.server.util.Mapper mapper,
WebContainer webContainer)
public String getDomain()
public void setDomain(String domain)
public String getNetworkListenerName()
public void setNetworkListenerName(String networkListenerName)
public String getDefaultHost()
public void setDefaultHost(String defaultHost)
public void setInstanceName(String instanceName)
public void init()
public boolean isNotificationEnabled(Notification notification)
isNotificationEnabled in interface NotificationFilternotification - The notification to be examinedpublic void handleNotification(Notification notification, Object handback)
handleNotification in interface NotificationListenerpublic void registerHost(StandardHost host) throws Exception
Exceptionpublic void unregisterHost(ObjectName objectName) throws Exception
ExceptionCopyright © 2019. All rights reserved.