Skip navigation links
A B C D F G H M P R S V 

A

addHeader(String, String) - Method in class com.sendgrid.Request
 
addQueryParam(String, String) - Method in class com.sendgrid.Request
 
api(Request) - Method in class com.sendgrid.Client
A thin wrapper around the HTTP methods.

B

buildUri(String, String, Map<String, String>) - Method in class com.sendgrid.Client
Add query parameters to a URL.

C

clearBaseUri() - Method in class com.sendgrid.Request
 
clearBody() - Method in class com.sendgrid.Request
 
clearEndpoint() - Method in class com.sendgrid.Request
 
clearHeaders() - Method in class com.sendgrid.Request
 
clearMethod() - Method in class com.sendgrid.Request
 
clearQueryParams() - Method in class com.sendgrid.Request
 
Client - Class in com.sendgrid
Class Client allows for quick and easy access any REST or REST-like API.
Client() - Constructor for class com.sendgrid.Client
Constructor for using the default CloseableHttpClient.
Client(CloseableHttpClient) - Constructor for class com.sendgrid.Client
Constructor for passing in an httpClient, typically for mocking.
Client(Boolean) - Constructor for class com.sendgrid.Client
Constructor for passing in a test parameter to allow for http calls.
Client(CloseableHttpClient, Boolean) - Constructor for class com.sendgrid.Client
Constructor for passing in an httpClient and test parameter to allow for http calls.
close() - Method in class com.sendgrid.Client
Closes the http client.
com.sendgrid - package com.sendgrid
 

D

delete(Request) - Method in class com.sendgrid.Client
Make a DELETE request and provide the status code and response headers.

F

finalize() - Method in class com.sendgrid.Client
Closes and finalizes the http client.

G

get(Request) - Method in class com.sendgrid.Client
Make a GET request and provide the status code, response body and response headers.
getBaseUri() - Method in class com.sendgrid.Request
 
getBody() - Method in class com.sendgrid.Request
 
getBody() - Method in class com.sendgrid.Response
 
getEndpoint() - Method in class com.sendgrid.Request
 
getHeaders() - Method in class com.sendgrid.Request
 
getHeaders() - Method in class com.sendgrid.Response
 
getMethod() - Method in class com.sendgrid.Request
 
getQueryParams() - Method in class com.sendgrid.Request
 
getResponse(CloseableHttpResponse) - Method in class com.sendgrid.Client
Prepare a Response object from an API call via Apache's HTTP client.
getStatusCode() - Method in class com.sendgrid.Response
 

H

handleEntity(HttpEntity) - Method in class com.sendgrid.SendGridResponseHandler
 
handleResponse(HttpResponse) - Method in class com.sendgrid.SendGridResponseHandler
Read the entity from the response body and pass it to the entity handler method if the response was successful (a 2xx status code).

M

Method - Enum in com.sendgrid
Currently supported HTTP methods.

P

patch(Request) - Method in class com.sendgrid.Client
Make a PATCH request and provide the status code, response body and response headers.
post(Request) - Method in class com.sendgrid.Client
Make a POST request and provide the status code, response body and response headers.
put(Request) - Method in class com.sendgrid.Client
Make a PUT request and provide the status code, response body and response headers.

R

removeHeader(String) - Method in class com.sendgrid.Request
 
removeQueryParam(String) - Method in class com.sendgrid.Request
 
Request - Class in com.sendgrid
Class Response provides a standard interface to an API's HTTP request.
Request() - Constructor for class com.sendgrid.Request
 
reset() - Method in class com.sendgrid.Request
Place the object into an empty state.
reset() - Method in class com.sendgrid.Response
Place the object into an empty state.
Response - Class in com.sendgrid
Class Response provides a standard interface to an API's response.
Response(int, String, Map<String, String>) - Constructor for class com.sendgrid.Response
Set the API's response.
Response() - Constructor for class com.sendgrid.Response
 

S

SendGridResponseHandler - Class in com.sendgrid
A ResponseHandler that returns the response body as a String for all responses.
SendGridResponseHandler() - Constructor for class com.sendgrid.SendGridResponseHandler
 
setBaseUri(String) - Method in class com.sendgrid.Request
 
setBody(String) - Method in class com.sendgrid.Request
 
setBody(String) - Method in class com.sendgrid.Response
 
setEndpoint(String) - Method in class com.sendgrid.Request
 
setHeaders(Map<String, String>) - Method in class com.sendgrid.Response
 
setMethod(Method) - Method in class com.sendgrid.Request
 
setStatusCode(int) - Method in class com.sendgrid.Response
 

V

valueOf(String) - Static method in enum com.sendgrid.Method
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.sendgrid.Method
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D F G H M P R S V 
Skip navigation links

Copyright © 2020. All rights reserved.