|
||||||||||
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 org.apache.wicket.request.target.basic.URIRequestTargetUrlCodingStrategy
public class URIRequestTargetUrlCodingStrategy
Request coding strategy that uses a simple URI by putting the remaining path in the uri page parameter. Override the decode() method to return the appropriate request target, calling getURI(requestParameters) to get requested uri. Note that this request coding strategy takes other page parameters from the query string directly, it does not use hierarchical path for parameters.
Field Summary | |
---|---|
protected static java.lang.String |
URI
|
Constructor Summary | |
---|---|
URIRequestTargetUrlCodingStrategy(java.lang.String mountPath)
|
Method Summary | |
---|---|
protected void |
appendParameters(AppendingStringBuffer url,
java.util.Map parameters)
Gets the encoded URL for the request target. |
IRequestTarget |
decode(RequestParameters requestParameters)
Does nothing |
PageParameters |
decodeParameters(RequestParameters requestParameters)
Get the remaining path after mount point. |
protected ValueMap |
decodeParameters(java.lang.String urlFragment,
java.util.Map urlParameters)
Decodes parameters object from the provided url fragment |
java.lang.CharSequence |
encode(IRequestTarget requestTarget)
Copied from BookmarkablePageRequestTargetUrlCodingStrategy.encode(IRequestTarget)
without pageMapName field |
protected java.lang.String |
getURI(RequestParameters requestParameters)
Calls decodeParameters() and retrieves the uri parameter. |
boolean |
matches(IRequestTarget requestTarget)
Always returns false |
Methods inherited from class org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy |
---|
getMountPath, matches, urlDecode, urlDecodePathComponent, urlDecodeQueryComponent, urlEncode, urlEncodePathComponent, urlEncodeQueryComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String URI
Constructor Detail |
---|
public URIRequestTargetUrlCodingStrategy(java.lang.String mountPath)
AbstractRequestTargetUrlCodingStrategy.AbstractRequestTargetUrlCodingStrategy(String)
Method Detail |
---|
public PageParameters decodeParameters(RequestParameters requestParameters)
requestParameters
- request parameters provided to the decode() method
public IRequestTarget decode(RequestParameters requestParameters)
requestParameters
- the request parameters
IRequestTargetUrlCodingStrategy.decode(org.apache.wicket.request.RequestParameters)
public java.lang.CharSequence encode(IRequestTarget requestTarget)
BookmarkablePageRequestTargetUrlCodingStrategy.encode(IRequestTarget)
without pageMapName field
requestTarget
- the request target to encode
IRequestTargetUrlCodingStrategy.encode(org.apache.wicket.IRequestTarget)
public boolean matches(IRequestTarget requestTarget)
requestTarget
- the request target
IRequestTargetUrlCodingStrategy.matches(org.apache.wicket.IRequestTarget)
protected void appendParameters(AppendingStringBuffer url, java.util.Map parameters)
QueryStringUrlCodingStrategy.appendParameters(org.apache.wicket.util.string.AppendingStringBuffer, java.util.Map)
appendParameters
in class AbstractRequestTargetUrlCodingStrategy
url
- the relative reference URLparameters
- parameter names mapped to parameter valuesprotected ValueMap decodeParameters(java.lang.String urlFragment, java.util.Map urlParameters)
decodeParameters
in class AbstractRequestTargetUrlCodingStrategy
urlFragment
- fragment of the url after the decoded path and before the query stringurlParameters
- query string parameters
protected java.lang.String getURI(RequestParameters requestParameters)
decodeParameters(RequestParameters)
directly.
NOTE. the returned URI is kept URL-encoded as per the
HttpServletRequest.getRequestURI()
specification
requestParameters
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |