org.jboss.netty.handler.codec.http
类 QueryStringDecoder

java.lang.Object
  继承者 org.jboss.netty.handler.codec.http.QueryStringDecoder

public class QueryStringDecoder
extends java.lang.Object

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:

 QueryStringDecoder decoder = new QueryStringDecoder("/hello?recipient=world");
 assert decoder.getPath().equals("/hello");
 assert decoder.getParameters().get("recipient").equals("world");
 

另请参见:
QueryStringEncoder

构造方法摘要
QueryStringDecoder(java.lang.String uri)
          Creates a new decoder that decodes the specified URI.
QueryStringDecoder(java.lang.String uri, java.nio.charset.Charset charset)
          Creates a new decoder that decodes the specified URI encoded in the specified charset.
QueryStringDecoder(java.lang.String uri, java.lang.String charset)
          已过时。 Use QueryStringDecoder(String, Charset) instead.
QueryStringDecoder(java.net.URI uri)
          Creates a new decoder that decodes the specified URI.
QueryStringDecoder(java.net.URI uri, java.nio.charset.Charset charset)
          Creates a new decoder that decodes the specified URI encoded in the specified charset.
QueryStringDecoder(java.net.URI uri, java.lang.String charset)
          已过时。 Use QueryStringDecoder(URI, Charset) instead.
 
方法摘要
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getParameters()
          Returns the decoded key-value parameter pairs of the URI.
 java.lang.String getPath()
          Returns the decoded path string of the URI.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

QueryStringDecoder

public QueryStringDecoder(java.lang.String uri)
Creates a new decoder that decodes the specified URI. The decoder will assume that the query string is encoded in UTF-8.


QueryStringDecoder

public QueryStringDecoder(java.lang.String uri,
                          java.nio.charset.Charset charset)
Creates a new decoder that decodes the specified URI encoded in the specified charset.


QueryStringDecoder

@Deprecated
public QueryStringDecoder(java.lang.String uri,
                                     java.lang.String charset)
已过时。 Use QueryStringDecoder(String, Charset) instead.


QueryStringDecoder

public QueryStringDecoder(java.net.URI uri)
Creates a new decoder that decodes the specified URI. The decoder will assume that the query string is encoded in UTF-8.


QueryStringDecoder

public QueryStringDecoder(java.net.URI uri,
                          java.nio.charset.Charset charset)
Creates a new decoder that decodes the specified URI encoded in the specified charset.


QueryStringDecoder

@Deprecated
public QueryStringDecoder(java.net.URI uri,
                                     java.lang.String charset)
已过时。 Use QueryStringDecoder(URI, Charset) instead.

方法详细信息

getPath

public java.lang.String getPath()
Returns the decoded path string of the URI.


getParameters

public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getParameters()
Returns the decoded key-value parameter pairs of the URI.