com.foxinmy.weixin4j.http
Class HttpRequest

java.lang.Object
  extended by 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)
See Also:

Constructor Summary
HttpRequest(HttpMethod method, String url)
           
HttpRequest(HttpMethod method, URI uri)
           
 
Method Summary
 HttpEntity getEntity()
           
 HttpHeaders getHeaders()
          HTTP报头
 HttpMethod getMethod()
           
 URI getURI()
           
 void setEntity(HttpEntity entity)
           
 void setHeaders(HttpHeaders headers)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface HttpMessage
Returns:


Copyright © 2014–2017. All rights reserved.