public class RestClientUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addAdditionalFieldsToMultiPartRequest(Map<String,List<String>> additionalFields,
org.springframework.util.MultiValueMap<String,Object> parts,
String[] nonAdditionalFields,
String multiValueSeparator) |
static String |
addParam(String url,
String name,
Object value) |
static org.springframework.web.client.RestTemplate |
createRestTemplate(Charset charset) |
static SearchException |
getSearchException(String indexId,
String message,
org.springframework.web.client.HttpStatusCodeException e)
Returns an instance of the appropriate
SearchException depending on the value of the HttpStatus. |
public static void addAdditionalFieldsToMultiPartRequest(Map<String,List<String>> additionalFields, org.springframework.util.MultiValueMap<String,Object> parts, String[] nonAdditionalFields, String multiValueSeparator)
public static org.springframework.web.client.RestTemplate createRestTemplate(Charset charset)
public static SearchException getSearchException(String indexId, String message, org.springframework.web.client.HttpStatusCodeException e)
SearchException depending on the value of the HttpStatus.indexId - the id of the indexmessage - the message for the exceptione - the exception thrown by the http clientCopyright © 2022 CrafterCMS. All rights reserved.