Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.services
Interface URLEncoder

All Known Implementing Classes:
  URLEncoderImpl

    public interface URLEncoder

Service used to encode or decode strings that are placed into URLs. This is used as an alternative to UUEncoding. Alphabetics, numbers and some punctuation ("-", "_", ".", ":") are passed through as is, the "$" character is an escape, followed by either another "$", or by a four digit hex unicode number. A null input (not a blank input, but actual null) has a special encoding, "$N". Likewise, the blank string has the special encoding "$B".

Method Summary
`java.lang.String` | `decode(java.lang.String input)` Given a previously encoded string, returns the original input.
`java.lang.String` | `encode(java.lang.String input)` Given an input value containing any characters, returns the input string, or an encoded version of the string (as outlined above).

Method Detail

### encode

    java.lang.String encode(java.lang.String input)

  Given an input value containing any characters, returns the input string, or an encoded version of the string (as outlined above).

  Parameters:
    `input` - string to be encoded, which may be null
  Returns:
    encoded version of input

### decode

    java.lang.String decode(java.lang.String input)

  Given a previously encoded string, returns the original input.

  Parameters:
    `input` - encoded string (may not be null)
  Returns:
    decoded input

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.