public interface ServiceEncoding
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
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String getParameterValue(java.lang.String name)
java.lang.String[] getParameterValues(java.lang.String name)
void setServletPath(java.lang.String servletPath)
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.void setParameterValues(java.lang.String name, java.lang.String[] values)
java.lang.String getServletPath()
java.lang.String getPathInfo()
java.lang.String[] getParameterNames()