public interface Variant
Modifier and Type | Method and Description |
---|---|
default String |
getLeafName(String nodeName,
HttpMessage msg)
Gets the name of the node to be used for the given
msg in the Site Map. |
List<NameValuePair> |
getParamList()
Gets the list of parameters handled by this variant.
|
default List<String> |
getTreePath(HttpMessage msg)
Returns the tree path elements for the given
message . |
String |
setEscapedParameter(HttpMessage msg,
NameValuePair originalPair,
String param,
String value) |
void |
setMessage(HttpMessage msg) |
String |
setParameter(HttpMessage msg,
NameValuePair originalPair,
String param,
String value) |
default void |
setParameters(HttpMessage message,
List<InputVector> inputVectors)
Sets the parameters into the given
message . |
void setMessage(HttpMessage msg)
List<NameValuePair> getParamList()
List
containing the parametersString setParameter(HttpMessage msg, NameValuePair originalPair, String param, String value)
String setEscapedParameter(HttpMessage msg, NameValuePair originalPair, String param, String value)
default void setParameters(HttpMessage message, List<InputVector> inputVectors)
message
.message
- the message that will be changedinputVectors
- list of name of the parameterdefault String getLeafName(String nodeName, HttpMessage msg)
msg
in the Site Map. Returning
null is taken to mean use the default name. This is currently the last element of the path
(given in nodeName
) followed by the url parameter names in brackets (if any) followed
by the form parameter names in brackets (if any).nodeName
- the last element of the pathmsg
- the messagedefault List<String> getTreePath(HttpMessage msg) throws org.apache.commons.httpclient.URIException
message
. Returning null is taken to mean
use the default methods for obtaining tree path elements. This will determine the position of
this message in the Site Map.
By default the elements are returned for the following URL are:
msg
- List
containing the tree path elementsorg.apache.commons.httpclient.URIException