org.xwiki.portlet.controller
Class NotifyingRequestDispatcher
java.lang.Object
org.xwiki.portlet.controller.NotifyingRequestDispatcher
- All Implemented Interfaces:
- javax.servlet.RequestDispatcher
public class NotifyingRequestDispatcher
- extends Object
- implements javax.servlet.RequestDispatcher
Wraps a request dispatcher to be able to notify the request that created it whenever it is used.
- Version:
- $Id: 54e7c467b5d8265fd6ab087218e6a57288c4e45c $
- See Also:
org.gatein.pc.portlet.impl.jsr168.DispatchtedRequestDispatcher
|
Constructor Summary |
NotifyingRequestDispatcher(javax.servlet.RequestDispatcher dispatcher,
DispatchedRequest dispatchedRequest,
String path)
Wraps a given request dispatcher and notifies the specified dispatched request whenever the dispatcher is used. |
|
Method Summary |
void |
forward(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
|
void |
include(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotifyingRequestDispatcher
public NotifyingRequestDispatcher(javax.servlet.RequestDispatcher dispatcher,
DispatchedRequest dispatchedRequest,
String path)
- Wraps a given request dispatcher and notifies the specified dispatched request whenever the dispatcher is used.
- Parameters:
dispatcher - the request dispatcher to wrapdispatchedRequest - the request object being notified whenever this dispatcher is usedpath - the path used to created the wrapped request dispatcher
forward
public void forward(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws javax.servlet.ServletException,
IOException
- Specified by:
forward in interface javax.servlet.RequestDispatcher
- Throws:
javax.servlet.ServletException
IOException
include
public void include(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws javax.servlet.ServletException,
IOException
- Specified by:
include in interface javax.servlet.RequestDispatcher
- Throws:
javax.servlet.ServletException
IOException
Copyright © 2004-2013 XWiki. All Rights Reserved.