|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.request.UrlRenderer
public class UrlRenderer
Takes care of rendering relative (or in future possibly absolute - depending on configuration) URLs.
All Urls are rendered relative to the base Url. Base Url is normally Url of the page being rendered. However, during Ajax request and redirect to buffer rendering the BaseUrl needs to be adjusted.
Constructor Summary | |
---|---|
UrlRenderer(Url base)
Construct. |
Method Summary | |
---|---|
Url |
getBaseUrl()
Returns the base Url. |
java.lang.String |
renderContextPathRelativeUrl(java.lang.String url,
Request request)
Renders the URL within context relative to current base URL. |
java.lang.String |
renderUrl(Url url)
Renders the Url relative to currently set Base Url. |
Url |
setBaseUrl(Url base)
Sets the base Url. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlRenderer(Url base)
base
- base Url. All generated Urls will be relative to this Url.Method Detail |
---|
public Url setBaseUrl(Url base)
base
-
public Url getBaseUrl()
public java.lang.String renderUrl(Url url)
Url
object represents part
of URL after Wicket Filter.
For general URLs within context use renderContextPathRelativeUrl(String, Request)
url
-
public java.lang.String renderContextPathRelativeUrl(java.lang.String url, Request request)
url
- request
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |