|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy
public abstract class AbstractRequestTargetUrlCodingStrategy
Abstract class for mount encoders that uses paths and forward slashes.
Constructor Summary | |
---|---|
AbstractRequestTargetUrlCodingStrategy(String mountPath)
Construct. |
Method Summary | |
---|---|
protected void |
appendParameters(AppendingStringBuffer url,
Map<String,?> parameters)
Encodes Map into a url fragment and append that to the provided url buffer. |
protected void |
appendPathParameter(AppendingStringBuffer url,
String key,
String value)
Appends path parameter |
protected ValueMap |
decodeParameters(String urlFragment,
Map<String,?> urlParameters)
Decodes parameters object from the provided url fragment |
String |
getMountPath()
Returns the path of the url where this request target is mounted on. |
boolean |
matches(String path,
boolean caseSensitive)
Does given path match this mount? We match /mount/point or /mount/point/with/extra/path, but not /mount/pointXXX. |
protected String |
urlDecode(String value)
Deprecated. Use urlEncodePathComponent or urlEncodeQueryComponent instead |
protected String |
urlDecodePathComponent(String value)
Returns a decoded value of the given value (taken from a URL path section) |
protected String |
urlDecodeQueryComponent(String value)
Returns a decoded value of the given value (taken from a URL query string) |
protected String |
urlEncode(String string)
Deprecated. Use urlEncodePathComponent or urlEncodeQueryComponent instead |
protected String |
urlEncodePathComponent(String string)
Url encodes a string that is mean for a URL path (e.g., between slashes) |
protected String |
urlEncodeQueryComponent(String string)
Url encodes a string mean for a URL query string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy |
---|
decode, encode, matches |
Constructor Detail |
---|
public AbstractRequestTargetUrlCodingStrategy(String mountPath)
mountPath
- the mount pathMethod Detail |
---|
public String getMountPath()
IRequestTargetUrlCodingStrategy
getMountPath
in interface IMountableRequestTargetUrlCodingStrategy
getMountPath
in interface IRequestTargetUrlCodingStrategy
IMountableRequestTargetUrlCodingStrategy.getMountPath()
protected void appendParameters(AppendingStringBuffer url, Map<String,?> parameters)
url
- url so farparameters
- Map object to be encodedprotected void appendPathParameter(AppendingStringBuffer url, String key, String value)
url
- key
- value
- protected ValueMap decodeParameters(String urlFragment, Map<String,?> urlParameters)
urlFragment
- fragment of the url after the decoded path and before the query stringurlParameters
- query string parameters
protected String urlEncodePathComponent(String string)
string
- string to be encoded
protected String urlDecodePathComponent(String value)
value
-
protected String urlEncodeQueryComponent(String string)
string
- string to be encoded
protected String urlDecodeQueryComponent(String value)
value
-
@Deprecated protected String urlDecode(String value)
value
-
@Deprecated protected String urlEncode(String string)
string
-
public boolean matches(String path, boolean caseSensitive)
matches
in interface IRequestTargetUrlCodingStrategy
path
- caseSensitive
- whether the strategy should treat path
argument with case sensitivity
or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |