|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.norther.tammi.spray.servlet.DefaultStartupServlet
public class DefaultStartupServlet
A default implementation of StartupServlet.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.spray.servlet.StartupServlet |
|---|
CONNECTOR_NAME_PROPERTY, INIT_PROPERTY_PREFIX, OBJECT_NAME_PROPERTY |
| Constructor Summary | |
|---|---|
DefaultStartupServlet()
Constructs a new servlet. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
destroy()
Destroys the servlet. |
void |
doGet(HttpServletRequest req,
HttpServletResponse res)
Handles the GET method. |
void |
doPost(HttpServletRequest req,
HttpServletResponse res)
Handles the POST method. |
ObjectName |
getConnector()
Gets the servlet connector name. |
protected MBeanDelegate |
getMBeanDelegate()
Gets the delegate to provide access to its methods for subclasses. |
MBeanNotificationInfo[] |
getNotificationInfo()
|
String |
getServletInfo()
Gets the servlet info. |
void |
init(ServletConfig config)
Initializes the servlet. |
void |
postmanaged()
This method is called when the implementing adaptee has been managed either during post-registration of the corresponding adapter MBean or just after it is explicitly added to the adapter MBean during run-time. |
void |
premanaged(MBeanDelegate adapter)
This method is called when the implementing adaptee is trying to be managed either during pre-registration of the corresponding adapter MBean or just before it is explicitly added to the adapter MBean during run-time. |
void |
removeNotificationListener(NotificationListener listener)
|
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
setConnector(ObjectName name)
Sets the servlet connector name. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.spray.servlet.StartupServlet |
|---|
getServletConfig, getServletName |
| Constructor Detail |
|---|
public DefaultStartupServlet()
| Method Detail |
|---|
public void premanaged(MBeanDelegate adapter)
throws Exception
Manageable
premanaged in interface Manageableadapter - the managing adapter.
Exception - if the adaptee refused to be managed.public void postmanaged()
Manageable
postmanaged in interface Manageable
public void unmanaged()
throws Exception
Manageable
unmanaged in interface ManageableException - if the adaptee refused to be unmanaged.public String getServletInfo()
StartupServlet
getServletInfo in interface ServletgetServletInfo in interface StartupServletgetServletInfo in class GenericServletpublic ObjectName getConnector()
StartupServlet
getConnector in interface StartupServletpublic void setConnector(ObjectName name)
StartupServlet
setConnector in interface StartupServletname - the name of the connector or a query.
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
addNotificationListener in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationEmitterListenerNotFoundException
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcaster
public void init(ServletConfig config)
throws ServletException
init in interface Servletinit in class GenericServletconfig - the configuration of the servlet.
ServletException - on errors.public void destroy()
destroy in interface Servletdestroy in class GenericServlet
public void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException
doGet in class HttpServletreq - a HTTP request.res - a HTTP response.
ServletException - on errors.
public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException
doPost in class HttpServletreq - a HTTP request.res - a HTTP response
ServletException - on errors.protected MBeanDelegate getMBeanDelegate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||