net.csdn.modules.transport
Class DefaultHttpTransportService
java.lang.Object
net.csdn.modules.transport.DefaultHttpTransportService
- All Implemented Interfaces:
- HttpTransportService
public class DefaultHttpTransportService
- extends Object
- implements HttpTransportService
BlogInfo: WilliamZhu
Date: 12-5-29
Time: 下午5:10
|
Method Summary |
FutureTask<HttpTransportService.SResponse> |
asyncHttp(net.csdn.common.path.Url url,
String jsonData,
RestRequest.Method method)
|
List<HttpTransportService.SResponse> |
asyncHttps(List<net.csdn.common.path.Url> urls,
String jsonData,
RestRequest.Method method)
|
void |
header(String header,
String value)
|
HttpTransportService.SResponse |
http(net.csdn.common.path.Url url,
String jsonData,
Map<String,String> headers,
RestRequest.Method method)
|
HttpTransportService.SResponse |
http(net.csdn.common.path.Url url,
String jsonData,
Map<String,String> headers,
RestRequest.Method method,
int timeout)
|
HttpTransportService.SResponse |
http(net.csdn.common.path.Url url,
String jsonData,
RestRequest.Method method)
|
HttpTransportService.SResponse |
http(net.csdn.common.path.Url url,
String jsonData,
RestRequest.Method method,
int timeout)
|
HttpTransportService.SResponse |
post(net.csdn.common.path.Url url,
Map data)
|
HttpTransportService.SResponse |
post(net.csdn.common.path.Url url,
Map data,
int timeout)
|
HttpTransportService.SResponse |
post(net.csdn.common.path.Url url,
Map data,
Map<String,String> headers)
|
HttpTransportService.SResponse |
post(net.csdn.common.path.Url url,
Map data,
Map<String,String> headers,
int timeout)
|
HttpTransportService.SResponse |
put(net.csdn.common.path.Url url,
Map data)
|
HttpTransportService.SResponse |
put(net.csdn.common.path.Url url,
Map data,
Map<String,String> headers)
|
void |
shutdownTransport()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
charset
public static final String charset
- See Also:
- Constant Field Values
DefaultHttpTransportService
public DefaultHttpTransportService()
header
public void header(String header,
String value)
- Specified by:
header in interface HttpTransportService
post
public HttpTransportService.SResponse post(net.csdn.common.path.Url url,
Map data)
- Specified by:
post in interface HttpTransportService
post
public HttpTransportService.SResponse post(net.csdn.common.path.Url url,
Map data,
Map<String,String> headers)
- Specified by:
post in interface HttpTransportService
put
public HttpTransportService.SResponse put(net.csdn.common.path.Url url,
Map data)
- Specified by:
put in interface HttpTransportService
put
public HttpTransportService.SResponse put(net.csdn.common.path.Url url,
Map data,
Map<String,String> headers)
- Specified by:
put in interface HttpTransportService
http
public HttpTransportService.SResponse http(net.csdn.common.path.Url url,
String jsonData,
RestRequest.Method method)
- Specified by:
http in interface HttpTransportService
http
public HttpTransportService.SResponse http(net.csdn.common.path.Url url,
String jsonData,
Map<String,String> headers,
RestRequest.Method method)
- Specified by:
http in interface HttpTransportService
http
public HttpTransportService.SResponse http(net.csdn.common.path.Url url,
String jsonData,
RestRequest.Method method,
int timeout)
- Specified by:
http in interface HttpTransportService
http
public HttpTransportService.SResponse http(net.csdn.common.path.Url url,
String jsonData,
Map<String,String> headers,
RestRequest.Method method,
int timeout)
- Specified by:
http in interface HttpTransportService
post
public HttpTransportService.SResponse post(net.csdn.common.path.Url url,
Map data,
Map<String,String> headers,
int timeout)
- Specified by:
post in interface HttpTransportService
post
public HttpTransportService.SResponse post(net.csdn.common.path.Url url,
Map data,
int timeout)
- Specified by:
post in interface HttpTransportService
asyncHttp
public FutureTask<HttpTransportService.SResponse> asyncHttp(net.csdn.common.path.Url url,
String jsonData,
RestRequest.Method method)
- Specified by:
asyncHttp in interface HttpTransportService
asyncHttps
public List<HttpTransportService.SResponse> asyncHttps(List<net.csdn.common.path.Url> urls,
String jsonData,
RestRequest.Method method)
- Specified by:
asyncHttps in interface HttpTransportService
shutdownTransport
public void shutdownTransport()
Copyright © 2014. All Rights Reserved.