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, Portlet).

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `beforeRenderUrl(UrlProvider provider)` Preprocessing step
    `void` | `renderFormUrl(Form formComponent)` Render a Form URL.
    `void` | `renderUrl(Writer writer, UrlProvider provider)` Render a URL.
    `void` | `setActionMapper(ActionMapper actionMapper)`

- - ### Method Detail

    - #### beforeRenderUrl

          void beforeRenderUrl(UrlProvider provider)

      Preprocessing step
      Parameters:
        `provider` - The `UrlProvider` component that "owns" this renderer.

    - #### renderUrl

          void renderUrl(Writer writer,
                       UrlProvider provider)

      Render a URL.
      Parameters:
        `writer` - A writer that the implementation can use to write the result to.
        `provider` - The `UrlProvider` component that "owns" this renderer.

    - #### renderFormUrl

          void renderFormUrl(Form formComponent)

      Render a Form URL.
      Parameters:
        `formComponent` - The `Form` component that "owns" this renderer.

    - #### setActionMapper

          void setActionMapper(ActionMapper actionMapper)

Copyright © 2000–2021 Apache Software Foundation. All rights reserved.