Package com.foxinmy.weixin4j.http
Class HttpRequest
- java.lang.Object
-
- com.foxinmy.weixin4j.http.HttpRequest
-
- All Implemented Interfaces:
HttpMessage
public class HttpRequest extends Object implements HttpMessage
HTTP 请求- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description HttpRequest(HttpMethod method, String url)HttpRequest(HttpMethod method, URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpEntitygetEntity()HttpHeadersgetHeaders()HTTP报头HttpMethodgetMethod()URIgetURI()voidsetEntity(HttpEntity entity)voidsetHeaders(HttpHeaders headers)
-
-
-
Constructor Detail
-
HttpRequest
public HttpRequest(HttpMethod method, URI uri)
-
HttpRequest
public HttpRequest(HttpMethod method, String url)
-
-
Method Detail
-
getMethod
public HttpMethod getMethod()
-
getURI
public URI getURI()
-
getEntity
public HttpEntity getEntity()
-
setEntity
public void setEntity(HttpEntity entity)
-
setHeaders
public void setHeaders(HttpHeaders headers)
-
getHeaders
public HttpHeaders getHeaders()
Description copied from interface:HttpMessageHTTP报头- Specified by:
getHeadersin interfaceHttpMessage- Returns:
-
-