public class JavaHttpBuilder extends HttpBuilder
HttpBuilder implementation based on the HttpURLConnection class.
Generally, this class should not be used directly, the preferred method of instantiation is via the
groovyx.net.http.HttpBuilder.configure(java.util.function.Function) or
groovyx.net.http.HttpBuilder.configure(java.util.function.Function, groovy.lang.Closure) methods.
| Modifier and Type | Class and Description |
|---|---|
protected class |
JavaHttpBuilder.Action |
protected static class |
JavaHttpBuilder.ThreadLocalAuth |
HttpBuilder.ResponseHandlerFunction| Modifier | Constructor and Description |
|---|---|
protected |
JavaHttpBuilder(HttpObjectConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected java.lang.Object |
doDelete(ChainedHttpConfig requestConfig) |
protected java.lang.Object |
doGet(ChainedHttpConfig requestConfig) |
protected java.lang.Object |
doHead(ChainedHttpConfig requestConfig) |
protected java.lang.Object |
doOptions(ChainedHttpConfig config) |
protected java.lang.Object |
doPatch(ChainedHttpConfig requestConfig) |
protected java.lang.Object |
doPost(ChainedHttpConfig requestConfig) |
protected java.lang.Object |
doPut(ChainedHttpConfig requestConfig) |
protected java.lang.Object |
doTrace(ChainedHttpConfig config) |
java.lang.Object |
getClientImplementation()
The core Java client implementation does not support direct client access.
|
java.util.concurrent.Executor |
getExecutor() |
protected ChainedHttpConfig |
getObjectConfig() |
addCookieStore, configure, configure, configure, configure, configure, cookies, cookiesToAdd, delete, delete, delete, delete, delete, deleteAsync, deleteAsync, deleteAsync, deleteAsync, deleteAsync, findCause, get, get, get, get, get, getAsync, getAsync, getAsync, getAsync, getAsync, getCookieManager, getCookieStore, handleException, head, head, head, head, head, headAsync, headAsync, headAsync, headAsync, headAsync, options, options, options, options, options, optionsAsync, optionsAsync, optionsAsync, optionsAsync, optionsAsync, patch, patch, patch, patch, patch, patchAsync, patchAsync, patchAsync, patchAsync, patchAsync, post, post, post, post, post, postAsync, postAsync, postAsync, postAsync, postAsync, put, put, put, put, put, putAsync, putAsync, putAsync, putAsync, putAsync, trace, trace, trace, trace, trace, traceAsync, traceAsync, traceAsync, traceAsync, traceAsyncprotected JavaHttpBuilder(HttpObjectConfig config)
public java.lang.Object getClientImplementation()
The core Java client implementation does not support direct client access. This method will throw an UnsupportedOperationException.
getClientImplementation in class HttpBuilderprotected ChainedHttpConfig getObjectConfig()
getObjectConfig in class HttpBuilderprotected java.lang.Object doGet(ChainedHttpConfig requestConfig)
doGet in class HttpBuilderprotected java.lang.Object doHead(ChainedHttpConfig requestConfig)
doHead in class HttpBuilderprotected java.lang.Object doPost(ChainedHttpConfig requestConfig)
doPost in class HttpBuilderprotected java.lang.Object doPut(ChainedHttpConfig requestConfig)
doPut in class HttpBuilderprotected java.lang.Object doDelete(ChainedHttpConfig requestConfig)
doDelete in class HttpBuilderprotected java.lang.Object doPatch(ChainedHttpConfig requestConfig)
doPatch in class HttpBuilderprotected java.lang.Object doOptions(ChainedHttpConfig config)
doOptions in class HttpBuilderprotected java.lang.Object doTrace(ChainedHttpConfig config)
doTrace in class HttpBuilderpublic java.util.concurrent.Executor getExecutor()
getExecutor in class HttpBuilderpublic void close()