org.apache.tapestry.internal.services
Class ComponentEventDispatcher
java.lang.Object
org.apache.tapestry.internal.services.ComponentEventDispatcher
- All Implemented Interfaces:
- Dispatcher
public class ComponentEventDispatcher
- extends Object
- implements Dispatcher
Processes component action events sent as requests from the client. Action events include an event type, identify a
page and a component, and may provide additional context strings.
Forms: - /context/pagename:eventname -- event on the page, no action context
- /context/pagename:eventname/foo/bar -- event on the page with action context "foo", "bar"
- /context/pagename.foo.bar -- event on component foo.bar within the page, default event, no action context
- /context/pagename.foo.bar/baz.gnu -- event on component foo.bar within the page, default event, with action
context "baz", "gnu"
- /context/pagename.bar.baz:eventname/foo/gnu -- event on component bar.baz within the
page with action context "foo" , "gnu"
The page name portion may itself consist of a series of folder names, i.e., "admin/user/create". The context portion
isn't the concern of this code, since Request.getPath() will already have
stripped that off. We can act as if the context is always "/" (the path always starts with a slash).
- See Also:
LinkFactory.createActionLink(org.apache.tapestry.internal.structure.Page, String, String,boolean, Object...)
|
Method Summary |
boolean |
dispatch(Request request,
Response response)
Analyzes the incoming request and performs an appropriate operation for each. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentEventDispatcher
public ComponentEventDispatcher(@Traditional
ComponentEventRequestHandler componentEventRequestHandler,
ComponentClassResolver componentClassResolver,
ContextValueEncoder contextValueEncoder,
RequestEncodingInitializer requestEncodingInitializer)
dispatch
public boolean dispatch(Request request,
Response response)
throws IOException
- Description copied from interface:
Dispatcher
- Analyzes the incoming request and performs an appropriate operation for each.
- Specified by:
dispatch in interface Dispatcher
- Returns:
- true if a response was delivered, false if the servlet container should be allowed to handle the request
- Throws:
IOException
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.