Package org.apache.struts2.components
Interface UrlRenderer
- All Known Implementing Classes:
ServletUrlRenderer
public interface UrlRenderer
Implementations of this interface are responsible for rendering/creating URLs for a specific
environment (e.g. Servlet).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeRenderUrl
(UrlProvider provider) Preprocessing stepvoid
renderFormUrl
(Form formComponent) Render a Form URL.void
renderUrl
(Writer writer, UrlProvider provider) Render a URL.void
setActionMapper
(ActionMapper actionMapper)
-
Method Details
-
beforeRenderUrl
Preprocessing step- Parameters:
provider
- TheUrlProvider
component that "owns" this renderer.
-
renderUrl
Render a URL.- Parameters:
writer
- A writer that the implementation can use to write the result to.provider
- TheUrlProvider
component that "owns" this renderer.
-
renderFormUrl
Render a Form URL.- Parameters:
formComponent
- TheForm
component that "owns" this renderer.
-
setActionMapper
-