|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
java.lang.String[] |
getParameterNames()
Returns an array of parameter names. |
java.lang.String |
getParameterValue(java.lang.String name)
Returns the value for the named parameter. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the value for the named parameter. |
java.lang.String |
getPathInfo()
Returns the portion of the URL after the servlet itself. |
java.lang.String |
getServletPath()
Returns the servlet path for the request. |
void |
setParameterValue(java.lang.String name,
java.lang.String value)
Sets the value for the named query parameter to the provided string. |
void |
setParameterValues(java.lang.String name,
java.lang.String[] values)
Sets the values for a named query parameter. |
void |
setServletPath(java.lang.String servletPath)
Updates the servlet path for the encoding. |
Method Detail |
public java.lang.String getParameterValue(java.lang.String name)
public java.lang.String[] getParameterValues(java.lang.String name)
public void setServletPath(java.lang.String servletPath)
public void setParameterValue(java.lang.String name, java.lang.String value)
name
- the name of the parameter to set.value
- the new value, which may be null.public void setParameterValues(java.lang.String name, java.lang.String[] values)
public java.lang.String getServletPath()
public java.lang.String getPathInfo()
public java.lang.String[] getParameterNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |