/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }
/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }
/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }
/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }
/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }
/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }
/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }
/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }
/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }
/** * Decode the HTTP request represented by the bytes inside {@link DataChunk}. * @param originalURI - The bytes to decode * @param targetDecodedURI the target {@link DataChunk} URI will be decoded to * @param isSlashAllowed is '/' an allowable character * @param encoding the encoding value, default is UTF-8 * @throws java.io.CharConversionException */ public static void decode(final DataChunk originalURI, final DataChunk targetDecodedURI, final boolean isSlashAllowed, final Charset encoding) throws CharConversionException { // %xx decoding of the URL URLDecoder.decode(originalURI, targetDecodedURI, isSlashAllowed); if (!normalize(targetDecodedURI)) { throw new CharConversionException("Invalid URI character encoding"); } convertToChars(targetDecodedURI, encoding); }