Wordpress identity store (#67)

This commit is contained in:
Max Dor
2018-03-23 17:14:59 +01:00
committed by GitHub
parent d93b546e3c
commit 3fc86465f8
17 changed files with 813 additions and 15 deletions

View File

@@ -20,9 +20,7 @@
package io.kamax.mxisd.util;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
@@ -31,7 +29,7 @@ import java.nio.charset.StandardCharsets;
public class RestClientUtils {
private static Gson gson = new GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create();
private static Gson gson = GsonUtil.build();
public static HttpPost post(String url, String body) {
StringEntity entity = new StringEntity(body, StandardCharsets.UTF_8);