public class HttpClient extends SocketPool
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
protected String[] |
permanentHeaders |
connectTimeout, host, port, proxy, readTimeout, sslContext, tosclosed, createdCount, fifo, initialCount, keepEmpty, maxCount, timeout, timeouts, waitingThreadsmodCount| Constructor and Description |
|---|
HttpClient(ConnectionString conn) |
HttpClient(ConnectionString conn,
String... permanentHeaders) |
| Modifier and Type | Method and Description |
|---|---|
Response |
connect(String uri,
String... headers) |
Request |
createRequest(int method,
String uri,
String... headers) |
Response |
delete(String uri,
String... headers) |
Response |
get(String uri,
String... headers) |
Response |
head(String uri,
String... headers) |
Response |
invoke(Request request) |
Response |
invoke(Request request,
int timeout) |
Response |
options(String uri,
String... headers) |
Response |
patch(String uri,
byte[] body,
String... headers) |
Response |
patch(String uri,
String... headers) |
Response |
post(String uri,
byte[] body,
String... headers) |
Response |
post(String uri,
String... headers) |
Response |
put(String uri,
byte[] body,
String... headers) |
Response |
put(String uri,
String... headers) |
protected void |
setProperties(ConnectionString conn) |
Response |
trace(String uri,
String... headers) |
createObject, destroyObject, getBusyCount, getConnectTimeout, getFifo, getIdleCount, getMaxCount, getProxy, getReadTimeout, getTimeout, getTimeouts, getWaitingThreads, name, setConnectTimeout, setFifo, setMaxCount, setProxy, setReadTimeout, setTimeoutborrowObject, close, initialize, invalidateAll, invalidateObject, isClosed, returnObjectadd, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitinvalidateAll, isClosedcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streamprotected static final org.apache.commons.logging.Log log
protected String[] permanentHeaders
public HttpClient(ConnectionString conn)
public HttpClient(ConnectionString conn, String... permanentHeaders)
protected void setProperties(ConnectionString conn)
setProperties in class SocketPoolpublic Response invoke(Request request) throws InterruptedException, PoolException, IOException, HttpException
public Response invoke(Request request, int timeout) throws InterruptedException, PoolException, IOException, HttpException
public Response get(String uri, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response delete(String uri, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response post(String uri, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response post(String uri, byte[] body, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response put(String uri, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response put(String uri, byte[] body, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response patch(String uri, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response patch(String uri, byte[] body, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response head(String uri, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response options(String uri, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response trace(String uri, String... headers) throws InterruptedException, PoolException, IOException, HttpException
public Response connect(String uri, String... headers) throws InterruptedException, PoolException, IOException, HttpException
Copyright © 2020. All rights reserved.