This commit is contained in:
Trustin Lee 2009-06-19 15:05:47 +00:00
parent 0047563eb5
commit 44c7818ae8
4 changed files with 16 additions and 1 deletions

View File

@ -38,6 +38,7 @@ import java.util.regex.Pattern;
* @author Andy Taylor (andy.taylor@jboss.org)
* @author Trustin Lee (tlee@redhat.com)
* @version $Rev$, $Date$
* @see CookieEncoder
*/
public class CookieDecoder {

View File

@ -39,6 +39,7 @@ import java.util.TreeSet;
* @author Andy Taylor (andy.taylor@jboss.org)
* @author Trustin Lee (tlee@redhat.com)
* @version $Rev$, $Date$
* @see CookieDecoder
*/
public class CookieEncoder {

View File

@ -34,7 +34,12 @@ import java.util.regex.Pattern;
/**
* Splits an HTTP query string into a path string and key-value parameter pairs.
* This decoder is for one time use only. Create a new instance for each URI.
* This decoder is for one time use only. Create a new instance for each URI:
* <pre>
* QueryStringDecoder decoder = new QueryStringDecoder("/hello?recipient=world");
* assert decoder.getPath().equals("/hello");
* assert decoder.getParameters().get("recipient").equals("world");
* </pre>
*
* @author The Netty Project (netty-dev@lists.jboss.org)
* @author Andy Taylor (andy.taylor@jboss.org)
@ -42,6 +47,7 @@ import java.util.regex.Pattern;
* @version $Rev$, $Date$
*
* @apiviz.stereotype utility
* @see QueryStringEncoder
*/
public class QueryStringDecoder {

View File

@ -33,12 +33,19 @@ import java.util.List;
* Creates an URL-encoded URI from a path string and key-value parameter pairs.
* This encoder is for one time use only. Create a new instance for each URI.
*
* <pre>
* QueryStringEncoder encoder = new QueryStringDecoder("/hello");
* encoder.addParam("recipient", "world");
* assert encoder.toString().equals("/hello?recipient=world");
* </pre>
*
* @author The Netty Project (netty-dev@lists.jboss.org)
* @author Andy Taylor (andy.taylor@jboss.org)
* @author Trustin Lee (tlee@redhat.com)
* @version $Rev$, $Date$
*
* @apiviz.stereotype utility
* @see QueryStringDecoder
*/
public class QueryStringEncoder {