|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRequestCodingStrategy
Implementations of this interface are responsible for digesting the incoming request and creating
a suitable RequestParameters
object for it, as well as creating
url representations for request targets.
Method Summary | |
---|---|
RequestParameters |
decode(Request request)
Analyze the request and create a corresponding request parameters object for it. |
CharSequence |
encode(RequestCycle requestCycle,
IRequestTarget requestTarget)
Gets the url that will point to the provided request target. |
String |
rewriteStaticRelativeUrl(String string)
Rewrites relative paths found in static markup attributes ( src,href,background )
of wicket pages. |
Methods inherited from interface org.apache.wicket.request.IRequestTargetMounter |
---|
addIgnoreMountPath, mount, pathForTarget, targetForRequest, unmount, urlCodingStrategyForPath |
Method Detail |
---|
RequestParameters decode(Request request)
request
- the incoming request
CharSequence encode(RequestCycle requestCycle, IRequestTarget requestTarget)
Gets the url that will point to the provided request target.
If an implementation supports mounting, it should return the mounted path for the provided request target if any.
requestCycle
- the current request cycle (for efficient access)requestTarget
- the request target
String rewriteStaticRelativeUrl(String string)
src,href,background
)
of wicket pages. Since we do not know the url depth at which the page will be rendered the
implementations should usually simply append a prefix, eg ../../
, to make the
path context-relative. If the url is not relative it is returned intact.
Implementations can be as simple as delegating to
UrlUtils.rewriteToContextRelative(String, Request)
string
-
Request.getRelativePathPrefixToContextRoot()
,
UrlUtils.rewriteToContextRelative(String, Request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |