|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object org.jboss.netty.handler.codec.http.QueryStringEncoder
public class QueryStringEncoder
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.
QueryStringEncoder
encoder = newQueryStringDecoder
("/hello"); encoder.addParam("recipient", "world"); assert encoder.toString().equals("/hello?recipient=world");
QueryStringDecoder
构造方法摘要 | |
---|---|
QueryStringEncoder(java.lang.String uri)
Creates a new encoder that encodes a URI that starts with the specified path string. |
|
QueryStringEncoder(java.lang.String uri,
java.nio.charset.Charset charset)
Creates a new encoder that encodes a URI that starts with the specified path string in the specified charset. |
|
QueryStringEncoder(java.lang.String uri,
java.lang.String charset)
已过时。 Use QueryStringEncoder(String, Charset) instead. |
方法摘要 | |
---|---|
void |
addParam(java.lang.String name,
java.lang.String value)
Adds a parameter with the specified name and value to this encoder. |
java.lang.String |
toString()
Returns the URL-encoded URI which was created from the path string specified in the constructor and the parameters added by addParam(String, String) method. |
java.net.URI |
toUri()
Returns the URL-encoded URI object which was created from the path string specified in the constructor and the parameters added by addParam(String, String) method. |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造方法详细信息 |
---|
public QueryStringEncoder(java.lang.String uri)
public QueryStringEncoder(java.lang.String uri, java.nio.charset.Charset charset)
@Deprecated public QueryStringEncoder(java.lang.String uri, java.lang.String charset)
QueryStringEncoder(String, Charset)
instead.
方法详细信息 |
---|
public void addParam(java.lang.String name, java.lang.String value)
public java.net.URI toUri() throws java.net.URISyntaxException
addParam(String, String)
method.
java.net.URISyntaxException
public java.lang.String toString()
addParam(String, String)
method.
java.lang.Object
中的 toString
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |