public class HttpPool extends SocketPool
| Constructor and Description |
|---|
HttpPool(HttpProxy httpProxy,
String url,
int timeout) |
HttpPool(String url,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
int |
get(String path,
Map<String,List<String>> requestHeaders,
ByteArrayQueue responseBody,
Map<String,List<String>> responseHeaders) |
int |
head(String path,
Map<String,List<String>> requestHeaders,
Map<String,List<String>> responseHeaders) |
void |
pipeline(List<Pipeline.Request> requests,
List<Pipeline.Response> responses) |
int |
post(String path,
ByteArrayQueue requestBody,
Map<String,List<String>> requestHeaders,
ByteArrayQueue responseBody,
Map<String,List<String>> responseHeaders) |
void |
postWithOutResponse(String path,
ByteArrayQueue requestBody,
Map<String,List<String>> requestHeaders) |
destroyObject, getSocketFactory, makeObjectactivateObject, borrowObject, close, passivateObject, reopen, returnObjectpublic HttpPool(String url, int timeout)
public int head(String path, Map<String,List<String>> requestHeaders, Map<String,List<String>> responseHeaders) throws IOException
IOExceptionpublic int get(String path, Map<String,List<String>> requestHeaders, ByteArrayQueue responseBody, Map<String,List<String>> responseHeaders) throws IOException
IOExceptionpublic int post(String path, ByteArrayQueue requestBody, Map<String,List<String>> requestHeaders, ByteArrayQueue responseBody, Map<String,List<String>> responseHeaders) throws IOException
IOExceptionpublic void postWithOutResponse(String path, ByteArrayQueue requestBody, Map<String,List<String>> requestHeaders) throws IOException
IOExceptionpublic void pipeline(List<Pipeline.Request> requests, List<Pipeline.Response> responses) throws IOException
IOExceptionCopyright © 2018. All rights reserved.