com.foxinmy.weixin4j.http
Class AbstractHttpClient

java.lang.Object
  extended by com.foxinmy.weixin4j.http.AbstractHttpClient
All Implemented Interfaces:
HttpClient
Direct Known Subclasses:
HttpComponent3, HttpComponent4, Netty4HttpClient, OkHttpClient2, OkHttpClient3, SimpleHttpClient

public abstract class AbstractHttpClient
extends Object
implements HttpClient


Constructor Summary
AbstractHttpClient()
           
 
Method Summary
 void delete(String url)
           
 void delete(String url, URLParameter... parameters)
           
 HttpResponse get(String url)
           
 HttpResponse get(String url, URLParameter... parameters)
           
 HttpHeaders head(String url)
           
 HttpHeaders head(String url, URLParameter... parameters)
           
 Set<HttpMethod> options(String url)
           
 Set<HttpMethod> options(String url, URLParameter... parameters)
           
 HttpResponse post(String url)
           
 HttpResponse post(String url, HttpEntity entity)
           
 HttpResponse post(String url, URLParameter... parameters)
           
 void put(String url)
           
 void put(String url, URLParameter... parameters)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.foxinmy.weixin4j.http.HttpClient
execute
 

Constructor Detail

AbstractHttpClient

public AbstractHttpClient()
Method Detail

get

public HttpResponse get(String url)
                 throws HttpClientException
Specified by:
get in interface HttpClient
Throws:
HttpClientException

get

public HttpResponse get(String url,
                        URLParameter... parameters)
                 throws HttpClientException
Specified by:
get in interface HttpClient
Throws:
HttpClientException

head

public HttpHeaders head(String url)
                 throws HttpClientException
Specified by:
head in interface HttpClient
Throws:
HttpClientException

head

public HttpHeaders head(String url,
                        URLParameter... parameters)
                 throws HttpClientException
Specified by:
head in interface HttpClient
Throws:
HttpClientException

post

public HttpResponse post(String url)
                  throws HttpClientException
Specified by:
post in interface HttpClient
Throws:
HttpClientException

post

public HttpResponse post(String url,
                         URLParameter... parameters)
                  throws HttpClientException
Specified by:
post in interface HttpClient
Throws:
HttpClientException

post

public HttpResponse post(String url,
                         HttpEntity entity)
                  throws HttpClientException
Specified by:
post in interface HttpClient
Throws:
HttpClientException

put

public void put(String url)
         throws HttpClientException
Specified by:
put in interface HttpClient
Throws:
HttpClientException

put

public void put(String url,
                URLParameter... parameters)
         throws HttpClientException
Specified by:
put in interface HttpClient
Throws:
HttpClientException

delete

public void delete(String url)
            throws HttpClientException
Specified by:
delete in interface HttpClient
Throws:
HttpClientException

delete

public void delete(String url,
                   URLParameter... parameters)
            throws HttpClientException
Specified by:
delete in interface HttpClient
Throws:
HttpClientException

options

public Set<HttpMethod> options(String url)
                        throws HttpClientException
Specified by:
options in interface HttpClient
Throws:
HttpClientException

options

public Set<HttpMethod> options(String url,
                               URLParameter... parameters)
                        throws HttpClientException
Specified by:
options in interface HttpClient
Throws:
HttpClientException


Copyright © 2014–2017. All rights reserved.