org.apache.struts2.url

## Interface UrlEncoder

- All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    StrutsUrlEncoder

      public interface UrlEncoder
      extends Serializable

  URL Encoder used internally by Struts
  Since:
    Struts 6.1.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `encode(String input)` Encodes the input to be used with URL using default encoding, e.g.: struts.i18n.encoding
    `String` | `encode(String input, String encoding)` Encodes the input tb be used with URL using the provided encoding

- - ### Method Detail

    - #### encode

          String encode(String input,
                        String encoding)

      Encodes the input tb be used with URL using the provided encoding
      Parameters:
        `input` - String to encode
        `encoding` - encoding to use
      Returns:
        encoded string

    - #### encode

          String encode(String input)

      Encodes the input to be used with URL using default encoding, e.g.: struts.i18n.encoding
      Parameters:
        `input` - String to encode
      Returns:
        encoded string

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