Coverage Report - org.mule.transport.servlet.events.ServletContextNotification
 
Classes in this File Line Coverage Branch Coverage Complexity
ServletContextNotification
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.transport.servlet.events;
 8  
 
 9  
 import org.mule.api.context.notification.BlockingServerEvent;
 10  
 import org.mule.context.notification.CustomNotification;
 11  
 
 12  
 import javax.servlet.ServletContext;
 13  
 
 14  
 /**
 15  
  * TODO
 16  
  */
 17  
 public class ServletContextNotification extends CustomNotification implements BlockingServerEvent
 18  
 {
 19  
     /**
 20  
      * Serial version
 21  
      */
 22  
     private static final long serialVersionUID = -3246036188011581121L;
 23  
 
 24  
     public static final int SERVLET_CONTEXT_START_RANGE = CUSTOM_EVENT_ACTION_START_RANGE + 1200;
 25  
     public static final int SERVLET_CONTEXT_INITIALISED = SERVLET_CONTEXT_START_RANGE + 1;
 26  
     public static final int SERVLET_CONTEXT_DESTROYED = SERVLET_CONTEXT_START_RANGE + 2;
 27  
 
 28  
     static {
 29  0
         registerAction("servlet context initialising", SERVLET_CONTEXT_INITIALISED);
 30  0
         registerAction("servlet context destroyed", SERVLET_CONTEXT_DESTROYED);
 31  0
     }
 32  
 
 33  
     public ServletContextNotification(ServletContext context, int action)
 34  
     {
 35  0
         super(context, action, context.getServletContextName());
 36  0
     }
 37  
 
 38  
     public String toString()
 39  
     {
 40  0
         return EVENT_NAME + "{" + "action=" + getActionName(action) + ", resourceId=" + resourceIdentifier
 41  
                 + ", timestamp=" + timestamp + "}";
 42  
     }
 43  
 
 44  
 }