com.wewebu.ow.server.servlets
Class OwRequestListener

java.lang.Object
  extended by com.wewebu.ow.server.servlets.OwRequestListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionAttributeListener, javax.servlet.ServletRequestListener

public class OwRequestListener
extends Object
implements javax.servlet.ServletRequestListener, javax.servlet.http.HttpSessionAttributeListener

ServletRequestListener. Specific Listener used to notify the framework for pre- and postprocessing of a request.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
3.2.0.0

Field Summary
protected static String PREPARE
          Attribute name which is set if prepare was executed
protected static String REQ_PROC_START
          Attribute name which contains the start time of request (in milliseconds Long)
 
Constructor Summary
OwRequestListener()
           
 
Method Summary
 void attributeAdded(javax.servlet.http.HttpSessionBindingEvent sbEv)
           
 void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent sbEv)
           
 void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent sbEv)
           
protected  boolean isNotificationPath(String servletPath)
          (overridable) Check if current request path is a framework dependent processing.
 void requestDestroyed(javax.servlet.ServletRequestEvent sre)
           
 void requestInitialized(javax.servlet.ServletRequestEvent sre)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREPARE

protected static final String PREPARE
Attribute name which is set if prepare was executed

See Also:
Constant Field Values

REQ_PROC_START

protected static final String REQ_PROC_START
Attribute name which contains the start time of request (in milliseconds Long)

See Also:
Constant Field Values
Constructor Detail

OwRequestListener

public OwRequestListener()
Method Detail

requestDestroyed

public void requestDestroyed(javax.servlet.ServletRequestEvent sre)
Specified by:
requestDestroyed in interface javax.servlet.ServletRequestListener

requestInitialized

public void requestInitialized(javax.servlet.ServletRequestEvent sre)
Specified by:
requestInitialized in interface javax.servlet.ServletRequestListener

isNotificationPath

protected boolean isNotificationPath(String servletPath)
(overridable) Check if current request path is a framework dependent processing.

This method filter out the calls which are simple resource request for images, CSS and so on.

Parameters:
servletPath - String Servlet path
Returns:
boolean checking the provided path.

attributeAdded

public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent sbEv)
Specified by:
attributeAdded in interface javax.servlet.http.HttpSessionAttributeListener

attributeRemoved

public void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent sbEv)
Specified by:
attributeRemoved in interface javax.servlet.http.HttpSessionAttributeListener

attributeReplaced

public void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent sbEv)
Specified by:
attributeReplaced in interface javax.servlet.http.HttpSessionAttributeListener


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.