|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tonbeller.wcf.controller.Controller
com.tonbeller.wcf.controller.WcfController
WcfController is a Controller that is global for all
components. WcfController just remembers RequestListeners and
views, the actual work is done by RequestFilter. It works
in JavaServer Faces context as well as stand-alone.
| Method Summary | |
void |
addRequestListener(RequestListener l)
|
java.lang.String |
getNextView()
|
java.util.List |
getRootListeners()
returns all registered RequestListeners |
static Controller |
instance(javax.servlet.http.HttpSession session)
|
void |
removeRequestListener(RequestListener l)
|
void |
request(RequestContext context)
notified by a Dispatcher for specific HTTP Requests |
void |
setNextView(java.lang.String uri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Controller instance(javax.servlet.http.HttpSession session)
public void addRequestListener(RequestListener l)
addRequestListener in class Controllerpublic void removeRequestListener(RequestListener l)
removeRequestListener in class Controllerpublic void setNextView(java.lang.String uri)
setNextView in class Controllerpublic java.lang.String getNextView()
getNextView in class Controller
public void request(RequestContext context)
throws java.lang.Exception
RequestListener
context - the current request
java.lang.Exceptionpublic java.util.List getRootListeners()
Controller
getRootListeners in class Controller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||