JAVA interception for writing

  Package test; 
  Import javax.servlet .*; 
  Import javax.servlet.http .*; 
  Import java.io. *; 
  Import java.util .*; 
  Public class Listener1 extends HttpServlet implements ServletContextListener, 
  ServletContextAttributeListener, HttpSessionListener, 
  HttpSessionAttributeListener, ServletRequestListener, 
  ServletRequestAttributeListener ( 
  / / Notification that the web module is ready to process requests 
  Public void contextInitialized (ServletContextEvent sce) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method contextInitialized () not yet implemented."); 
  ) 
  / / Notification that the servlet context is about to be shut down 
  Public void contextDestroyed (ServletContextEvent sce) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method contextDestroyed () not yet implemented."); 
  ) 
  / / Notification that a new attribute has been added to the servlet context 
  Public void attributeAdded (ServletContextAttributeEvent scab) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method attributeAdded () not yet implemented."); 
  ) 
  / / Notification that an attribute has been removed from the servlet context 
  Public void attributeRemoved (ServletContextAttributeEvent scab) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method attributeRemoved () not yet implemented."); 
  ) 
  / / Notification that an attribute of the servlet context has been replaced 
  Public void attributeReplaced (ServletContextAttributeEvent scab) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method attributeReplaced () not yet implemented."); 
  ) 
  / / Notification that a session was created 
  Public void sessionCreated (HttpSessionEvent se) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method sessionCreated () not yet implemented."); 
  ) 
  / / Notification that a session was invalidated 
  Public void sessionDestroyed (HttpSessionEvent se) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method sessionDestroyed () not yet implemented."); 
  ) 
  / / Notification that a new attribute has been added to a session 
  Public void attributeAdded (HttpSessionBindingEvent se) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method attributeAdded () not yet implemented."); 
  ) 
  / / Notification that an attribute has been removed from a session 
  Public void attributeRemoved (HttpSessionBindingEvent se) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method attributeRemoved () not yet implemented."); 
  ) 
  / / Notification that an attribute of a session has been replaced 
  Public void attributeReplaced (HttpSessionBindingEvent se) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method attributeReplaced () not yet implemented."); 
  ) 
  / / Notification that a request was created 
  Public void requestInitialized (ServletRequestEvent sre) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method requestInitialized () not yet implemented."); 
  ) 
  / / Notification that a request was invalidated 
  Public void requestDestroyed (ServletRequestEvent sre) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method requestDestroyed () not yet implemented."); 
  ) 
  / / Notification that a new attribute has been added to a request 
  Public void attributeAdded (ServletRequestAttributeEvent srae) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method attributeAdded () not yet implemented."); 
  ) 
  / / Notification that an attribute has been removed from a request 
  Public void attributeRemoved (ServletRequestAttributeEvent srae) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method attributeRemoved () not yet implemented."); 
  ) 
  / / Notification that an attribute of a request has been replaced 
  Public void attributeReplaced (ServletRequestAttributeEvent srae) ( 
  Throw new java.lang.UnsupportedOperationException ( 
  "Method attributeReplaced () not yet implemented."); 
  ) 
  ) 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Recommend Articles

Comments

Leave a Reply