com.primix.tapestry
Class Gesture
java.lang.Object
|
+--com.primix.tapestry.Gesture
- public class Gesture
- extends java.lang.Object
A Gesture represents a possible action within the client web browser;
either clicking a link or submitting a form. A full URL for the Gesture
can be generated, or the query parameters for the Gesture can be extracted
(seperately from the servlet path). The latter case is used when submitting
forms.
- Since:
- 1.0.3
- Version:
- $Id: Gesture.java,v 1.2 2001/08/28 20:33:41 hship Exp $
- Author:
- Howard Ship
Constructor Summary |
Gesture(java.lang.String servletPath,
java.util.Map queryParameters)
Creates a new Gesture, for the given servlet and with a set
or query parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Gesture
public Gesture(java.lang.String servletPath,
java.util.Map queryParameters)
- Creates a new Gesture, for the given servlet and with a set
or query parameters.
- Parameters:
servletPath
- the complete path (including context path) of
the servlet (see IEngine.getServletPath()
).queryParameters
- a Map
of parameters. Keys and values
are both String. Map not be null; one query parameter must be
specify the engine service.
getQueryParameters
public java.util.Iterator getQueryParameters()
- Returns the
Iterator
for the query parameter map's entry set.
Each value will be Map.Entry
.
getServletPath
public java.lang.String getServletPath()
getFullURL
public java.lang.String getFullURL()
- Returns the full URL, with all query parameters encoded into the URL.
This must still be filtered through
HttpServletResponse#encodeURL(String)
.
getFullURL
public java.lang.String getFullURL(IRequestCycle cycle)
- As with
getFullURL()
, but runs the result through
IRequestCycle.encodeURL(String)
.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object