public class HttpTrace extends HttpRequestBase
HTTP TRACE方法在RFC2616的 9.6节中定义 :
The TRACE method is used to invoke a remote, application-layer loop- back of the request message. The final recipient of the request SHOULD reflect the message received back to the client as the entity-body of a 200 (OK) response. The final recipient is either the origin server or the first proxy or gateway to receive a Max-Forwards value of zero (0) in the request (see section 14.31). A TRACE request MUST NOT include an entity.
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_NAME |
headergroup, params| Modifier and Type | Method and Description |
|---|---|
String |
getMethod()
返回该请求使用HTTP方法,如
GET ,
PUT ,
POST ,或其他。
|
getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toStringabort, clone, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTriggeraddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitabort, isAbortedaddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamspublic static final String METHOD_NAME
public HttpTrace()
public HttpTrace(URI uri)
public HttpTrace(String uri)
IllegalArgumentException - 如果uri无效。
public String getMethod()
HttpUriRequest复制
GET ,
PUT ,
POST ,或其他。
getMethod在界面
HttpUriRequest
getMethod在
HttpRequestBase
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.