public final class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
decodeApacheHTTPDLogValue(String input)
Decoder for this specification:
http://httpd.apache.org/docs/current/mod/mod_log_config.html#formats
Format Notes
For security reasons, starting with version 2.0.46, non-printable and other special characters
in %r, %i and %o are escaped using \xhh sequences, where hh stands for the hexadecimal representation of
the raw byte.
|
static byte |
hexCharsToByte(char c1,
char c2) |
static String |
resilientUrlDecode(String input)
The main goal of the resilientUrlDecode is to have a UrlDecode that keeps working
even if the input is seriously flawed or even uses a rejected standard.
|
public static String resilientUrlDecode(String input)
input - the UrlEncoded input stringpublic static byte hexCharsToByte(char c1,
char c2)
public static String decodeApacheHTTPDLogValue(String input)
input - The value as it was logged by the Apache HTTPD.Copyright © 2016. All rights reserved.