org.apache.catalina.connector
Class MapperListener

java.lang.Object
  extended by org.apache.catalina.connector.MapperListener
All Implemented Interfaces:
EventListener, NotificationListener, org.apache.catalina.ContainerListener

public class MapperListener
extends Object
implements NotificationListener, org.apache.catalina.ContainerListener

Mapper listener.

Author:
Remy Maucherat, Costin Manolache TODO: This class fixes an issue when restarting the web container, remove it when integrating Tomcat > 6.0.20

Field Summary
protected  Connector connector
          Associated connector.
protected  org.apache.tomcat.util.http.mapper.Mapper mapper
          Associated mapper.
protected  MBeanServer mBeanServer
          MBean server.
 
Constructor Summary
MapperListener(org.apache.tomcat.util.http.mapper.Mapper mapper, Connector connector)
          Create mapper listener.
 
Method Summary
 void containerEvent(org.apache.catalina.ContainerEvent event)
           
 void destroy()
          unregister this from JMImplementation:type=MBeanServerDelegate
 String getDomain()
           
 String getEngine()
           
 void handleNotification(Notification notification, Object handback)
           
 void init()
          Initialize associated mapper.
 void setDomain(String domain)
           
 void setEngine(String engine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapper

protected org.apache.tomcat.util.http.mapper.Mapper mapper
Associated mapper.


connector

protected Connector connector
Associated connector.


mBeanServer

protected MBeanServer mBeanServer
MBean server.

Constructor Detail

MapperListener

public MapperListener(org.apache.tomcat.util.http.mapper.Mapper mapper,
                      Connector connector)
Create mapper listener.

Method Detail

getDomain

public String getDomain()

setDomain

public void setDomain(String domain)

getEngine

public String getEngine()

setEngine

public void setEngine(String engine)

init

public void init()
Initialize associated mapper.


destroy

public void destroy()
unregister this from JMImplementation:type=MBeanServerDelegate


handleNotification

public void handleNotification(Notification notification,
                               Object handback)
Specified by:
handleNotification in interface NotificationListener

containerEvent

public void containerEvent(org.apache.catalina.ContainerEvent event)
Specified by:
containerEvent in interface org.apache.catalina.ContainerListener


Copyright © 2010 OW2 Consortium. All Rights Reserved.