Javadoc
This commit is contained in:
parent
0047563eb5
commit
44c7818ae8
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user