Interface Transformer<NON_ENCODED,​ENCODED>

  • Type Parameters:
    NON_ENCODED - the class of the decoded objects produced.
    ENCODED - the class of the encoded objects parsed.

    public interface Transformer<NON_ENCODED,​ENCODED>
    An encoder/decoder of URI components.
    • Method Detail

      • encode

        ENCODED encode​(NON_ENCODED nonEncoded)
        URI encodes a non-encoded object.
        Parameters:
        nonEncoded - the non-encoded Object to be encoded.
        Returns:
        an Object representing the encoded version.
      • decode

        NON_ENCODED decode​(ENCODED rawValue)
                    throws ParseException
        Parses an encoded URI component.
        Parameters:
        rawValue - the encoded URI component to decode.
        Returns:
        an object representing the decoded URI component.
        Throws:
        ParseException - if the given String is not a valid URI component.