JavaScript is disabled on your browser.
Overview
Package
Class
Deprecated
Index
Help
Frames
No Frames
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
A
accept(CharSequence)
- Method in
HttpRequestBuilder
Sets the Accept HTTP header to the given value.
accept(T)
- Method in
NettyPromise
AsyncHttpBuilder
- Class in
grails.http.client
An asynchronous REST client that leverages Netty for non-blocking IO
AsyncHttpBuilder.AsyncHttpClientInitializer
- Class in
grails.http.client
Initializes the HTTP client channel
AsyncHttpBuilder.AsyncHttpClientInitializer(Configuration)
- Constructor in
AsyncHttpBuilder.AsyncHttpClientInitializer
AsyncHttpBuilder.HttpConnectionListener
- Class in
grails.http.client
AsyncHttpBuilder.HttpConnectionListener(URI, Promise, Closure, Configuration, HttpMethod)
- Constructor in
AsyncHttpBuilder.HttpConnectionListener
AsyncHttpBuilder.HttpResponseHandler
- Class in
grails.http.client
AsyncHttpBuilder.HttpResponseHandler(Configuration)
- Constructor in
AsyncHttpBuilder.HttpResponseHandler
AsyncHttpBuilder(Configuration)
- Constructor in
AsyncHttpBuilder
Constructs a new AsyncHttpBuilder instance for the given configuration
auth(CharSequence)
- Method in
HttpRequestBuilder
Sets the Authorization HTTP header to the given value.
B
bootstrap
- Field in
AsyncHttpBuilder
buildPromise(Promise)
- Method in
AsyncHttpBuilder
buildPromise(Promise)
- Method in
TestAsyncHttpBuilder
buildSslContext(Configuration)
- Method in
AsyncHttpBuilder
Builds an io.netty.handler.ssl.SslContext from the
Configuration
C
cancel(boolean)
- Method in
NettyPromise
channelRead0(ChannelHandlerContext, HttpObject)
- Method in
AsyncHttpBuilder.HttpResponseHandler
charAt(int)
- Method in
HttpHeader
Configuration
- Trait in
grails.http.client
Configuration for the HTTP client
contentType(CharSequence)
- Method in
HttpMessageBuilder
Sets the content type for the request
created()
- Method in
HttpResponseBuilder
Sets a created status
D
DefaultConfiguration
- Class in
grails.http.client.cfg
The default configuration
DefaultConfiguration()
- Constructor in
DefaultConfiguration
defaultContentType(HttpHeaders, String)
- Method in
HttpMessageBuilder
defaultJsonContentType(HttpHeaders)
- Method in
HttpMessageBuilder
delete(String, Closure)
- Method in
AsyncHttpBuilder
Executes a DELETE request to the given URI with an optional customizer
doConnect(Bootstrap, String, int)
- Method in
AsyncHttpBuilder
Creates an initial connection with the given bootstrap and remote host
doConnect(Bootstrap, String, int)
- Method in
TestAsyncHttpBuilder
doRequest(HttpMethod, Closure, String)
- Method in
AsyncHttpBuilder
E
exceptionCaught(ChannelHandlerContext, Throwable)
- Method in
AsyncHttpBuilder.HttpResponseHandler
expect(Closure)
- Method in
TestAsyncHttpBuilder
Adds a new request expectation
F
file(String, String, CharSequence, String, Charset)
- Method in
HttpRequestBuilder.MultipartBuilder
Adds a file for the given name, filename and text
forbidden()
- Method in
HttpResponseBuilder
Sets an FORBIDDEN status
form(Closure)
- Method in
HttpRequestBuilder
Builds a form
forName(CharSequence)
- Method in
HttpHeader
Obtain a header instance for the given name
G
get(String, Closure)
- Method in
AsyncHttpBuilder
Executes a GET request to the given URI with an optional customizer
get(long, TimeUnit)
- Method in
NettyPromise
getHeader(String)
- Method in
HttpClientResponse
Obtain a value of a header
getInputStream()
- Method in
HttpClientResponse
Obtain an input stream from the body
getJson()
- Method in
HttpClientResponse
@return The JSON representation of the response body
getStatus()
- Method in
HttpClientResponse
@return The returned http status object
getStatusCode()
- Method in
HttpClientResponse
@return The status code of the response
getStatusReason()
- Method in
HttpClientResponse
@return The reason message
getText(Charset)
- Method in
HttpClientResponse
@return The textual content of the body
getXml()
- Method in
HttpClientResponse
@return An XML representation for the response body
group
- Field in
AsyncHttpBuilder
guessContentType(String, boolean)
- Method in
HttpRequestBuilder.MultipartBuilder
guessIsText(String)
- Method in
HttpRequestBuilder.MultipartBuilder
H
head(String, Closure)
- Method in
AsyncHttpBuilder
Executes a HEAD request to the given URI with an optional customizer
header(String)
- Method in
HttpClientResponse
Obtain a value of a header
header(HttpHeader, def)
- Method in
HttpMessageBuilder
Sets a request header
HttpClientResponse
- Class in
grails.http.client
Represents an HTTP response
HttpClientResponse(FullHttpResponse, Charset)
- Constructor in
HttpClientResponse
HttpHeader
- Enum in
grails.http
Enum for common HTTP headers
HttpHeader(String)
- Constructor in
HttpHeader
HttpMessageBuilder
- Class in
grails.http.client.builder
Abstract class for building HTTP messages
HttpMessageBuilder(FullHttpMessage, Charset)
- Constructor in
HttpMessageBuilder
HttpMethod
- Enum in
grails.http
An enum containing the valid HTTP methods
HttpRequestBuilder
- Class in
grails.http.client.builder
Represents the HTTP request to be customized
HttpRequestBuilder.FormDataBuilder
- Class in
grails.http.client.builder
HttpRequestBuilder.FormDataBuilder(HttpPostRequestEncoder, Charset, boolean)
- Constructor in
HttpRequestBuilder.FormDataBuilder
HttpRequestBuilder.MultipartBuilder
- Class in
grails.http.client.builder
Helps with building multipart requests
HttpRequestBuilder.MultipartBuilder(HttpPostRequestEncoder, Charset)
- Constructor in
HttpRequestBuilder.MultipartBuilder
HttpRequestBuilder(FullHttpRequest, Charset)
- Constructor in
HttpRequestBuilder
HttpResponseBuilder
- Class in
grails.http.client.builder
Builds HTTP responses
HttpResponseBuilder(FullHttpResponse, Charset)
- Constructor in
HttpResponseBuilder
HttpStatus
- Enum in
grails.http
Represents HTTP status codes
HttpStatus(int, String)
- Constructor in
HttpStatus
I
initChannel(Channel)
- Method in
AsyncHttpBuilder.AsyncHttpClientInitializer
invokeMethod(String, Object)
- Method in
HttpRequestBuilder.FormDataBuilder
isCancelled()
- Method in
NettyPromise
isDone()
- Method in
NettyPromise
J
json(String)
- Method in
HttpMessageBuilder
Adds JSON to the body of the request
K
L
length()
- Method in
HttpHeader
M
method(HttpMethod)
- Method in
HttpRequestBuilder
Sets the method of the request
multipart(Closure)
- Method in
HttpRequestBuilder
Builds a multipart form
N
NettyPromise
- Class in
grails.http.client.async
Abstraction around Netty promise API
NettyPromise(Promise<T>)
- Constructor in
NettyPromise
newPromise(ChannelFuture)
- Method in
AsyncHttpBuilder
notFound()
- Method in
HttpResponseBuilder
Sets not found status
O
ok()
- Method in
HttpResponseBuilder
Sets an ok status
onComplete(Closure)
- Method in
NettyPromise
onError(Closure)
- Method in
NettyPromise
operationComplete(ChannelFuture)
- Method in
AsyncHttpBuilder.HttpConnectionListener
options(String, Closure)
- Method in
AsyncHttpBuilder
Executes a OPTIONS request to the given URI with an optional customizer
P
patch(String, Closure)
- Method in
AsyncHttpBuilder
Executes a PATCH request to the given URI with an optional customizer
post(String, Closure)
- Method in
AsyncHttpBuilder
Executes a POST request to the given URI with an optional customizer
prepareJsonBuilder()
- Method in
HttpMessageBuilder
put(String, Closure)
- Method in
AsyncHttpBuilder
Executes a PUT request to the given URI with an optional customizer
Q
R
respond(Closure)
- Method in
TestAsyncHttpBuilder
Adds a response to be produced
respond(Closure)
- Method in
TestAsyncHttpBuilder.MockResponseBuilder
S
setProperty(String, Object)
- Method in
HttpRequestBuilder.FormDataBuilder
setProperty(String, Object)
- Method in
HttpRequestBuilder.MultipartBuilder
status(HttpStatus)
- Method in
HttpResponseBuilder
Sets the status of the response
subSequence(int, int)
- Method in
HttpHeader
T
TestAsyncHttpBuilder
- Class in
grails.http.client.test
Allows for mocking and testing usages of
AsyncHttpBuilder
in application code
TestAsyncHttpBuilder.MockResponseBuilder
- Class in
grails.http.client.test
Allows construction of a mock response
TestAsyncHttpBuilder.MockResponseBuilder(TestAsyncHttpBuilder)
- Constructor in
TestAsyncHttpBuilder.MockResponseBuilder
TestAsyncHttpBuilder(Configuration)
- Constructor in
TestAsyncHttpBuilder
then(Closure)
- Method in
NettyPromise
toString()
- Method in
HttpClientResponse
toString()
- Method in
HttpHeader
U
unauthorized()
- Method in
HttpResponseBuilder
Sets an UNAUTHORIZED status
uri(CharSequence)
- Method in
HttpRequestBuilder
Sets the URI of the request
V
valueOf(int)
- Method in
HttpStatus
The status for the given code
verify()
- Method in
TestAsyncHttpBuilder
Verifies the expected requests were produced
verifyRequest(HttpRequest, HttpRequest)
- Method in
TestAsyncHttpBuilder
W
writeHttpRequest(Channel, HttpRequest)
- Method in
AsyncHttpBuilder.HttpConnectionListener
writeResponse()
- Method in
TestAsyncHttpBuilder
X
xml(GPathResult)
- Method in
HttpMessageBuilder
Sets the body of the request to the XML GPathResult argument.
Y
Z
_
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
Overview
Package
Class
Deprecated
Index
Help
Frames
No Frames
Groovy Documentation