public final class URLRequest
extends java.lang.Object
ProtocolHandler.onRequest(URLRequest)
method.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMethod()
Returns the current request method ("GET", "POST" etc.).
返回当前的请求方法(“ GET”,“ POST”等)。 |
HttpHeadersEx |
getRequestHeaders()
Returns request HTTP headers for the current request.
返回当前请求的请求HTTP标头。 |
long |
getRequestId()
Returns a globally unique identifier for this request.
返回此请求的全局唯一标识符。 |
UploadData |
getUploadData()
Returns
返回提供对上传数据的访问的UploadData实例。 UploadData instance that provides access to upload data.
|
java.lang.String |
getURL()
Returns a string that represents request URL.
返回表示请求URL的字符串。 |
public java.lang.String getURL()
public long getRequestId()
public java.lang.String getMethod()
public HttpHeadersEx getRequestHeaders()
public UploadData getUploadData()
UploadData
instance that provides access to upload data.
UploadData
instance that provides access to upload data or
null
if request doesn't contain data for upload.
提供对上传数据的访问权限的实例,或者如果请求不包含要上传的数据的实例。