Skip to content
Permalink
Browse files
Remove trailing whitepsace.
  • Loading branch information
garydgregory committed Feb 15, 2021
1 parent fcc4731 commit ce5ce15633d4be9756dc93a2d2a450917e014d7d
Showing 3 changed files with 7 additions and 7 deletions.
@@ -20,7 +20,7 @@
* An implementation of
* {@link org.apache.commons.fileupload2.FileUpload FileUpload}
* for use in servlets conforming to the namespace {@code jakarta.servlet}.
*
*
* </p>
* <p>
* The following code fragment demonstrates typical usage.
@@ -21,10 +21,10 @@
/**
* Utility class to decode/encode character set on HTTP Header fields based on RFC 2231.
* This implementation adheres to RFC 5987 in particular, which was defined for HTTP headers
*
*
* RFC 5987 builds on RFC 2231, but has lesser scope like <a href="https://tools.ietf.org/html/rfc5987#section-3.2">mandatory charset definition</a>
* and <a href="https://tools.ietf.org/html/rfc5987#section-4">no parameter continuation</a>
*
*
* <p>
* @see <a href="https://tools.ietf.org/html/rfc2231">RFC 2231</a>
* @see <a href="https://tools.ietf.org/html/rfc5987">RFC 5987</a>
@@ -57,7 +57,7 @@ public static boolean hasEncodedValue(final String paramName) {
}

/**
* If {@code paramName} has Asterisk (*) at the end, it will be stripped off,
* If {@code paramName} has Asterisk (*) at the end, it will be stripped off,
* else the passed value will be returned
* @param paramName The parameter, which is being inspected.
* @return stripped {@code paramName} of Asterisk (*), if RFC2231 encoded
@@ -73,7 +73,7 @@ public static String stripDelimiter(final String paramName) {

/**
* Decode a string of text obtained from a HTTP header as per RFC 2231
*
*
* <b>Eg 1.</b> {@code us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A}
* will be decoded to {@code This is ***fun***}
*
@@ -82,7 +82,7 @@ public static String stripDelimiter(final String paramName) {
*
* <b>Eg 3.</b> {@code UTF-8''%c2%a3%20and%20%e2%82%ac%20rates}
* will be decoded to {@code £ and € rates}.
*
*
* @param encodedText - Text to be decoded has a format of {@code <charset>'<language>'<encoded_value>} and ASCII only
* @return Decoded text based on charset encoding
* @throws UnsupportedEncodingException The requested character set wasn't found.
@@ -27,7 +27,7 @@

/**
* The expected characters are encoded in UTF16, while the actual characters may be encoded in UTF-8/ISO-8859-1
*
*
* RFC 5987 recommends to support both UTF-8 & ISO 8859-1. Test values are taken from https://tools.ietf.org/html/rfc5987#section-3.2.2
*/
public final class RFC2231UtilityTestCase {

0 comments on commit ce5ce15

Please sign in to comment.