Skip navigation links
A B C D E G H I J P R S 

A

accept(String) - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Sets a custom content type as Accept header
acceptJson() - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Sets the accept content type to application/json
addHeader(String, String) - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Adds a custom header to the request
as(Class<T>, int...) - Method in class io.devcon5.commons.rest.SimpleRestClient.Response
Tries to parse the returned content into the specified target type.
asBytes(int...) - Method in class io.devcon5.commons.rest.SimpleRestClient.Response
Reads the response as byte array if the response represents is valid (by response code)
asInputStream(int...) - Method in class io.devcon5.commons.rest.SimpleRestClient.Response
Reads the response as InputStream if the response represents is valid (by response code)
asString(int...) - Method in class io.devcon5.commons.rest.SimpleRestClient.Response
Reads the response as String if the response represents is valid (by response code)
auth(String) - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Specifies a custom auth token to set as Authorization information on the request

B

basicAuth(String, String) - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Specifies basic authentication information to be added to the request

C

contentType(String) - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Sets a custom content type as Content-Type header

D

delete() - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Finalizes and sends a DELETE request

E

EntityReader - Interface in io.devcon5.commons.rest
 

G

get() - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Finalizes and sends a GET request
getMessage() - Method in class io.devcon5.commons.rest.SimpleRestClient.Response
The HTTP repsonse message
getStatusCode() - Method in class io.devcon5.commons.rest.SimpleRestClient.Response
The http response code

H

hasValidResponseCode(int...) - Method in class io.devcon5.commons.rest.SimpleRestClient.Response
Checks if the response code returned by the server is one of the valid response code provided.
head() - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Finalizes and sends a HEAD request

I

ignoreSSL() - Static method in class io.devcon5.commons.rest.SSLConfiguration
Disables SSL Certificate checks globally for all HttpsUrlConnections.
io.devcon5.commons.rest - package io.devcon5.commons.rest
 

J

JAXBEntityReader - Class in io.devcon5.commons.rest
 
JAXBEntityReader() - Constructor for class io.devcon5.commons.rest.JAXBEntityReader
 

P

post(SimpleRestClient.CheckedConsumer<OutputStream>) - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Finalizes and sends a POST request
put(SimpleRestClient.CheckedConsumer<OutputStream>) - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Finalizes and sends a PUT request

R

read(Class<T>, String, InputStream) - Method in interface io.devcon5.commons.rest.EntityReader
Reads the input stream which is of the specified content type and produces an instance of the target type
read(Class<T>, String, byte[]) - Method in interface io.devcon5.commons.rest.EntityReader
 
read(Class<T>, String, InputStream) - Method in class io.devcon5.commons.rest.JAXBEntityReader
 
requestTo(String) - Static method in class io.devcon5.commons.rest.SimpleRestClient
Initiates a new request to the specified URL
requestTo(URL) - Static method in class io.devcon5.commons.rest.SimpleRestClient
Initiates a new request to the specified URL

S

sendJson() - Method in class io.devcon5.commons.rest.SimpleRestClient.RequestBuilder
Sets the sent content's type to application/json
SimpleRestClient - Class in io.devcon5.commons.rest
A simple client to send requests to a REST API using plain Java SE.
SimpleRestClient() - Constructor for class io.devcon5.commons.rest.SimpleRestClient
 
SimpleRestClient.RequestBuilder - Class in io.devcon5.commons.rest
Builder for fluently defining a request
SimpleRestClient.Response - Class in io.devcon5.commons.rest
A Response handle around a HttpURLConnection
SSLConfiguration - Class in io.devcon5.commons.rest
Helper class to globally disable checks for proper certificates on HTTPS connections.
SSLConfiguration() - Constructor for class io.devcon5.commons.rest.SSLConfiguration
 
supports(Class<?>, String) - Method in interface io.devcon5.commons.rest.EntityReader
Checks if the implementor is capable of producing instances of the target type using data of the specified contentType.
supports(Class<?>, String) - Method in class io.devcon5.commons.rest.JAXBEntityReader
 
A B C D E G H I J P R S 
Skip navigation links

Copyright © 2017–2018 DevCon5 GmbH. All rights reserved.