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 HttpEntity
getEntity()
HttpHeaders
getHeaders()
HTTP报头HttpMethod
getMethod()
URI
getURI()
void
setEntity(HttpEntity entity)
void
setHeaders(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:HttpMessage
HTTP报头- Specified by:
getHeaders
in interfaceHttpMessage
- Returns:
-
-