com.cyberark.conjur.util.rs.JsonBodyReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of conjur-api Show documentation
Show all versions of conjur-api Show documentation
Programmatic Java access to the Conjur API
package com.cyberark.conjur.util.rs;
import com.google.gson.Gson;
import edu.emory.mathcs.backport.java.util.Collections;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.MessageBodyReader;
import javax.ws.rs.ext.Provider;
import java.io.*;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.HashSet;
import java.util.Set;
/**
* Can be registered (or provided during the JAXRS scanning phase) to process Json responses.
*/
@Provider
public class JsonBodyReader implements MessageBodyReader