Index

A B C D E F G H I J L M O P Q R S T U X 
All Classes and Interfaces|All Packages|Serialized Form

A

accept(MediaType...) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Headers
 
add(String, String...) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Headers
 
addToTemplate(RestTemplate) - Method in class sk.antons.sbutils.http.LoggingInterceptor
Add this interceptor to RestTemplate instance
afterCompletion(MessageContext, Exception) - Method in class sk.antons.sbutils.ws.SBWSLoggingInterceptor
 
all() - Static method in class sk.antons.sbutils.http.LoggingInterceptor.Headers
Converts HttpHeaders as list of (key: value) pairs for all header values.
append(String) - Method in exception sk.antons.sbutils.rest.RestTemplateClient.Path
 
apply(Throwable) - Method in class sk.antons.sbutils.http.JsonExceptionHandler.DefaultExceptionProcessor
 
apply(Throwable) - Method in class sk.antons.sbutils.http.JsonExceptionHandler.DefaultStatusResolver
 

B

basicAuth(String, String) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Headers
 
Body() - Constructor for class sk.antons.sbutils.http.LoggingInterceptor.Body
 
build() - Method in class sk.antons.sbutils.rest.RestTemplateClient.Headers
build header builder with statically created headers.
build() - Method in exception sk.antons.sbutils.rest.RestTemplateClient.Path
 
builder() - Static method in class sk.antons.sbutils.rest.RestTemplateClient.Headers
Helper for build static headers step by step
builder() - Static method in exception sk.antons.sbutils.rest.RestTemplateClient.Path
 
builder(String) - Static method in exception sk.antons.sbutils.rest.RestTemplateClient.Path
 
Builder() - Constructor for class sk.antons.sbutils.rest.RestTemplateClient.Builder
 

C

call() - Method in class sk.antons.sbutils.rest.RestTemplateClient.Request
 
call(Class<T>) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Request
 
call(ParameterizedTypeReference<T>) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Request
 
client() - Method in class sk.antons.sbutils.rest.RestTemplateClient.Builder
 
content(Object) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Request
 
contentType(MediaType) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Headers
 
contentTypeOnly(MediaType) - Static method in class sk.antons.sbutils.rest.RestTemplateClient.Headers
Add header Content-Type: xxx
counter - Static variable in class sk.antons.sbutils.rest.RestTemplateClient
 
cufStringLiterals(int) - Method in class sk.antons.sbutils.util.JsonStreamToString
 
cufStringLiterals(int) - Method in class sk.antons.sbutils.util.XmlStreamToString
 
CxfLogInterceptor - Class in sk.antons.sbutils.ws
CXF interceptor for logging soap requests and responses.
CxfLogInterceptor(boolean) - Constructor for class sk.antons.sbutils.ws.CxfLogInterceptor
 
CxfLogInterceptor.Format - Class in sk.antons.sbutils.ws
Provides xml formatting.

D

DefaultExceptionProcessor() - Constructor for class sk.antons.sbutils.http.JsonExceptionHandler.DefaultExceptionProcessor
 
DefaultStatusResolver() - Constructor for class sk.antons.sbutils.http.JsonExceptionHandler.DefaultStatusResolver
 
delete() - Method in class sk.antons.sbutils.rest.RestTemplateClient
 

E

encoding(String) - Method in class sk.antons.sbutils.util.JsonStreamToString
 
encoding(String) - Method in class sk.antons.sbutils.util.XmlStreamToString
 

F

forceOneLine() - Method in class sk.antons.sbutils.util.JsonStreamToString
 
forceOneLine() - Method in class sk.antons.sbutils.util.XmlStreamToString
 
format(Function<InputStream, String>) - Method in class sk.antons.sbutils.ws.CxfLogInterceptor
Format request or response xml.
format(Function<InputStream, String>) - Method in class sk.antons.sbutils.ws.SBWSLoggingInterceptor
Format request or response xml.
Format() - Constructor for class sk.antons.sbutils.ws.CxfLogInterceptor.Format
 
Format() - Constructor for class sk.antons.sbutils.ws.SBWSLoggingInterceptor.Format
 

G

get() - Method in class sk.antons.sbutils.rest.RestTemplateClient
 
getBody() - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 
getError() - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 
getHeaders() - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 
getMessage() - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 
getMethod() - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 
getStatus() - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 
getUrl() - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 

H

handleFault(MessageContext) - Method in class sk.antons.sbutils.ws.SBWSLoggingInterceptor
 
handleMessage(SoapMessage) - Method in class sk.antons.sbutils.ws.CxfLogInterceptor
 
handleRequest(MessageContext) - Method in class sk.antons.sbutils.ws.SBWSLoggingInterceptor
 
handleResponse(MessageContext) - Method in class sk.antons.sbutils.ws.SBWSLoggingInterceptor
 
head() - Method in class sk.antons.sbutils.rest.RestTemplateClient
 
headers - Variable in class sk.antons.sbutils.rest.RestTemplateClient
 
headers() - Method in class sk.antons.sbutils.rest.RestTemplateClient
 
headers(BiFunction<String, Object, HttpHeaders>) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Builder
HttpHeaders added to request.
headers(HttpHeaders) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Request
 
Headers() - Constructor for class sk.antons.sbutils.http.LoggingInterceptor.Headers
 
Headers() - Constructor for class sk.antons.sbutils.rest.RestTemplateClient.Headers
 
HttpException(Throwable) - Constructor for exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 
HttpException(ResponseEntity) - Constructor for exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 

I

in() - Static method in class sk.antons.sbutils.ws.CxfLogInterceptor
 
indent(String) - Method in class sk.antons.sbutils.util.JsonStreamToString
 
indent(String) - Method in class sk.antons.sbutils.util.XmlStreamToString
 
instance() - Static method in class sk.antons.sbutils.http.JsonExceptionHandler.DefaultExceptionProcessor
 
instance() - Static method in class sk.antons.sbutils.http.JsonExceptionHandler.DefaultStatusResolver
 
instance() - Static method in class sk.antons.sbutils.http.JsonExceptionHandler
 
instance() - Static method in class sk.antons.sbutils.http.LoggingInterceptor
 
instance() - Static method in class sk.antons.sbutils.rest.RestTemplateClient.Builder
 
instance() - Static method in class sk.antons.sbutils.util.JsonStreamToString
 
instance() - Static method in class sk.antons.sbutils.util.XmlStreamToString
 
instance() - Static method in class sk.antons.sbutils.ws.SBWSLoggingInterceptor
 
instance(boolean) - Static method in class sk.antons.sbutils.ws.CxfLogInterceptor
 
intercept(HttpRequest, byte[], ClientHttpRequestExecution) - Method in class sk.antons.sbutils.http.LoggingInterceptor
 

J

json() - Static method in class sk.antons.sbutils.http.LoggingInterceptor.Body
Converts content to json and allows to format it.
JsonExceptionHandler - Class in sk.antons.sbutils.http
Helper class for creating exception advice class.
JsonExceptionHandler() - Constructor for class sk.antons.sbutils.http.JsonExceptionHandler
 
JsonExceptionHandler.DefaultExceptionProcessor - Class in sk.antons.sbutils.http
Simple exception to ObjectNode mapper.
JsonExceptionHandler.DefaultStatusResolver - Class in sk.antons.sbutils.http
Resolve http status from exception class.
JsonStreamToString - Class in sk.antons.sbutils.util
Converts stream to json string using io.github.antonsjava:json.
JsonStreamToString() - Constructor for class sk.antons.sbutils.util.JsonStreamToString
 

L

listed(String...) - Static method in class sk.antons.sbutils.http.LoggingInterceptor.Headers
Converts HttpHeaders as list of (key: value) pairs for listed header values.
listedCodes(int...) - Static method in class sk.antons.sbutils.rest.RestTemplateClient.ResponseValidator
Checks if response code is one of listed
logger(Consumer<String>) - Method in class sk.antons.sbutils.http.LoggingInterceptor
Method for logging message about request and response
logger(Consumer<String>) - Method in class sk.antons.sbutils.ws.CxfLogInterceptor
Logger to log messages
logger(Consumer<String>) - Method in class sk.antons.sbutils.ws.SBWSLoggingInterceptor
Logger to log messages
logger(Consumer<Throwable>) - Method in class sk.antons.sbutils.http.JsonExceptionHandler
method for logging exception
loggerEnabled(BooleanSupplier) - Method in class sk.antons.sbutils.http.LoggingInterceptor
Method for controlling if logging is enabled
loggerEnabled(BooleanSupplier) - Method in class sk.antons.sbutils.ws.CxfLogInterceptor
Method which determine if logger is enabled
loggerEnabled(BooleanSupplier) - Method in class sk.antons.sbutils.ws.SBWSLoggingInterceptor
Method which determine if logger is enabled
LoggingInterceptor - Class in sk.antons.sbutils.http
ClientHttpRequestInterceptor implementation.
LoggingInterceptor.Body - Class in sk.antons.sbutils.http
Helper class for default Body to string converters.
LoggingInterceptor.Headers - Class in sk.antons.sbutils.http
Helper class for default HttpHeaders convertors.

M

method(HttpMethod) - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 

O

out() - Static method in class sk.antons.sbutils.ws.CxfLogInterceptor
 

P

path(String) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Request
 
pathVariable(String) - Method in exception sk.antons.sbutils.rest.RestTemplateClient.Path
 
post() - Method in class sk.antons.sbutils.rest.RestTemplateClient
 
process(Throwable) - Method in class sk.antons.sbutils.http.JsonExceptionHandler
Process Exception to http response.
processor(Function<Throwable, ObjectNode>) - Method in class sk.antons.sbutils.http.JsonExceptionHandler
method for converting exception to json response
put() - Method in class sk.antons.sbutils.rest.RestTemplateClient
 

Q

query(String, String) - Method in exception sk.antons.sbutils.rest.RestTemplateClient.Path
 

R

requestBody(Function<InputStream, String>) - Method in class sk.antons.sbutils.http.LoggingInterceptor
Method for converting Body content to string
requestHeaders(Function<HttpHeaders, String>) - Method in class sk.antons.sbutils.http.LoggingInterceptor
Method for converting HttpHeaders to string
responseBody(Function<InputStream, String>) - Method in class sk.antons.sbutils.http.LoggingInterceptor
Method for converting Body content to string
responseHeaders(Function<HttpHeaders, String>) - Method in class sk.antons.sbutils.http.LoggingInterceptor
Method for converting HttpHeaders to string
responseValidator - Variable in class sk.antons.sbutils.rest.RestTemplateClient
 
responseValidator() - Method in class sk.antons.sbutils.rest.RestTemplateClient
 
responseValidator(Predicate<ResponseEntity>) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Builder
Response checker for OK responses.
ResponseValidator() - Constructor for class sk.antons.sbutils.rest.RestTemplateClient.ResponseValidator
 
RestTemplateClient - Class in sk.antons.sbutils.rest
Helper implementation for RestTemplate usage.
RestTemplateClient.Builder - Class in sk.antons.sbutils.rest
RestTemplateClient builder
RestTemplateClient.Headers - Class in sk.antons.sbutils.rest
Default headers provider
RestTemplateClient.HttpException - Exception in sk.antons.sbutils.rest
Exception thrown if an error ocures od ResponseValidator returns false.
RestTemplateClient.Path - Exception in sk.antons.sbutils.rest
Path builder
RestTemplateClient.Request - Class in sk.antons.sbutils.rest
RestTemplateClient builder
RestTemplateClient.ResponseValidator - Class in sk.antons.sbutils.rest
ResponseValidator builder (check if response is ok - if not exception is thrown.)
root - Variable in class sk.antons.sbutils.rest.RestTemplateClient
 
root(String) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Builder
Url prefix.

S

SBWSLoggingInterceptor - Class in sk.antons.sbutils.ws
Spring boot WS interceptor for logging soap requests and responses.
SBWSLoggingInterceptor.Format - Class in sk.antons.sbutils.ws
Provides xml formatting.
setAll(Map<String, String>) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Headers
 
simple(Map<String, String>) - Static method in class sk.antons.sbutils.rest.RestTemplateClient.Headers
Add headers specified in map
sk.antons.sbutils.http - package sk.antons.sbutils.http
 
sk.antons.sbutils.rest - package sk.antons.sbutils.rest
 
sk.antons.sbutils.util - package sk.antons.sbutils.util
 
sk.antons.sbutils.ws - package sk.antons.sbutils.ws
 
status(Class, HttpStatus) - Method in class sk.antons.sbutils.http.JsonExceptionHandler.DefaultStatusResolver
Define custom code for exception class
status(HttpStatus) - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 
statusResolver(Function<Throwable, HttpStatus>) - Method in class sk.antons.sbutils.http.JsonExceptionHandler
method for resolving http status from exception
successful() - Static method in class sk.antons.sbutils.rest.RestTemplateClient.ResponseValidator
Checks if response code is 2xx

T

template - Variable in class sk.antons.sbutils.rest.RestTemplateClient
 
template(RestTemplate) - Method in class sk.antons.sbutils.rest.RestTemplateClient.Builder
RestTemplate used for call.
transform() - Method in class sk.antons.sbutils.util.JsonStreamToString
 
transform() - Method in class sk.antons.sbutils.util.XmlStreamToString
 

U

url(String) - Method in exception sk.antons.sbutils.rest.RestTemplateClient.HttpException
 

X

xml() - Static method in class sk.antons.sbutils.http.LoggingInterceptor.Body
Converts content to xml and allows to format it.
xml() - Static method in class sk.antons.sbutils.ws.CxfLogInterceptor.Format
 
xml() - Static method in class sk.antons.sbutils.ws.SBWSLoggingInterceptor.Format
 
XmlStreamToString - Class in sk.antons.sbutils.util
Converts stream to xml string using io.github.antonsjava:jaul.
XmlStreamToString() - Constructor for class sk.antons.sbutils.util.XmlStreamToString
 
A B C D E F G H I J L M O P Q R S T U X 
All Classes and Interfaces|All Packages|Serialized Form