Package sk.antons.sbutils.rest
Class RestTemplateClient.Headers
java.lang.Object
sk.antons.sbutils.rest.RestTemplateClient.Headers
- Enclosing class:
- RestTemplateClient
Default headers provider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(org.springframework.http.MediaType... value) BiFunction<String,Object, org.springframework.http.HttpHeaders> build()build header builder with statically created headers.static RestTemplateClient.Headersbuilder()Helper for build static headers step by stepcontentType(org.springframework.http.MediaType value) static BiFunction<String,Object, org.springframework.http.HttpHeaders> contentTypeOnly(org.springframework.http.MediaType contentType) Add header Content-Type: xxxstatic BiFunction<String,Object, org.springframework.http.HttpHeaders> Add headers specified in map
-
Constructor Details
-
Headers
public Headers()
-
-
Method Details
-
contentTypeOnly
public static BiFunction<String,Object, contentTypeOnlyorg.springframework.http.HttpHeaders> (org.springframework.http.MediaType contentType) Add header Content-Type: xxx -
simple
public static BiFunction<String,Object, simpleorg.springframework.http.HttpHeaders> (Map<String, String> map) Add headers specified in map -
builder
Helper for build static headers step by step -
build
build header builder with statically created headers. -
contentType
-
accept
-
setAll
-
add
-
basicAuth
-