public class ServletUrlRenderer extends Object implements UrlRenderer
UrlRenderer
interface that creates URLs suitable in a servlet environment.Constructor and Description |
---|
ServletUrlRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
beforeRenderUrl(UrlProvider urlComponent)
Preprocessing step
|
protected void |
mergeRequestParameters(String value,
Map<String,Object> parameters,
Map<String,Object> contextParameters)
Merge request parameters into current parameters.
|
void |
renderFormUrl(Form formComponent)
Render a Form URL.
|
void |
renderUrl(Writer writer,
UrlProvider urlComponent)
Render a URL.
|
void |
setActionMapper(ActionMapper mapper) |
void |
setUrlHelper(UrlHelper urlHelper) |
public void setActionMapper(ActionMapper mapper)
setActionMapper
in interface UrlRenderer
public void setUrlHelper(UrlHelper urlHelper)
public void renderUrl(Writer writer, UrlProvider urlComponent)
renderUrl
in interface UrlRenderer
writer
- A writer that the implementation can use to write the result to.urlComponent
- The UrlProvider
component that "owns" this renderer.public void renderFormUrl(Form formComponent)
renderFormUrl
in interface UrlRenderer
formComponent
- The Form
component that "owns" this renderer.public void beforeRenderUrl(UrlProvider urlComponent)
UrlRenderer
beforeRenderUrl
in interface UrlRenderer
urlComponent
- The UrlProvider
component that "owns" this renderer.protected void mergeRequestParameters(String value, Map<String,Object> parameters, Map<String,Object> contextParameters)
value
- the value attribute (url to be generated by this component)parameters
- component parameterscontextParameters
- request parametersCopyright © 2000–2020 Apache Software Foundation. All rights reserved.