public class RequestLine extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
String |
initPath |
Method |
method |
String |
path |
String |
protocol |
String |
queryString |
String |
version |
| 构造器和说明 |
|---|
RequestLine() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getInitPath() |
Method |
getMethod() |
String |
getPath()
譬如http://www.163.com/user/get?
|
String |
getPathAndQuery()
/user/get?
|
String |
getProtocol() |
String |
getQueryString()
譬如http://www.163.com/user/get?
|
String |
getVersion() |
void |
setInitPath(String initPath) |
void |
setMethod(Method method) |
void |
setPath(String path)
譬如http://www.163.com/user/get?
|
void |
setProtocol(String protocol) |
void |
setQueryString(String queryString)
譬如http://www.163.com/user/get?
|
void |
setVersion(String version) |
String |
toString() |
String |
toUrlEncodedString(String charset)
用来编码用的
"GET /json?
|
public Method method
public String path
public String initPath
public String queryString
public String protocol
public String version
public Method getMethod()
public void setMethod(Method method)
method - the method to setpublic String getPath()
public void setPath(String path)
path - the path to setpublic String getPathAndQuery()
public String getQueryString()
public void setQueryString(String queryString)
queryString - the queryString to setpublic String getVersion()
public void setVersion(String version)
version - the version to setpublic String getProtocol()
public void setProtocol(String protocol)
protocol - the protocol to setpublic String getInitPath()
public void setInitPath(String initPath)
Copyright © 2024. All rights reserved.