|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceEncoding
Contains the information needed to encode a request for a service; the
servlet path plus and query parameters. The service encoding is passed to
each ServiceEncoder
, which is
allowed to modify the encoding (typically, by changing the servlet path and
settting query parameters to null). From this modified encoding, an
ILink
can be constructed.
Additionally, when a request is dispatched by Tapestry, an SRE is also
created and passed to each ServiceEncoder
for
decoding. Here, the query parameters that may have been nulled out by the
encoding are restored.
ServiceConstants
Method Summary | |
---|---|
String[] |
getParameterNames()
Returns an array of parameter names. |
String |
getParameterValue(String name)
Returns the value for the named parameter. |
String[] |
getParameterValues(String name)
Returns the value for the named parameter. |
String |
getPathInfo()
Returns the portion of the URL after the servlet itself. |
String |
getServletPath()
Returns the servlet path for the request. |
void |
setParameterValue(String name,
String value)
Sets the value for the named query parameter to the provided string. |
void |
setParameterValues(String name,
String[] values)
Sets the values for a named query parameter. |
void |
setServletPath(String servletPath)
Updates the servlet path for the encoding. |
Method Detail |
---|
String getParameterValue(String name)
String[] getParameterValues(String name)
void setServletPath(String servletPath)
void setParameterValue(String name, String value)
name
- the name of the parameter to set.value
- the new value, which may be null.void setParameterValues(String name, String[] values)
String getServletPath()
String getPathInfo()
String[] getParameterNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |