common/src/main/java/org/jboss/pnc/common/util/HttpUtils.java
public static <T> T processGetRequest(Class<T> clazz, String url) throws Exception {
        ClientRequest request = new ClientRequest(url);
        request.accept(MediaType.APPLICATION_JSON);

        ClientResponse<T> response = request.get(clazz);
        return response.getEntity();
    }
public static <T> T processGetRequest(Class<T> clazz, String url) throws Exception {
        ClientRequest request = new ClientRequest(url);
        request.accept(MediaType.APPLICATION_JSON);

        ClientResponse<T> response = request.get(clazz);
        return response.getEntity();
    }
public static < T > T processGetRequest ( Class < T > clazz , String url ) throws Exception { ClientRequest request = new ClientRequest ( url ) ; request . accept ( MediaType . APPLICATION_JSON ) ; ClientResponse < T > response = request . get ( clazz ) ; return response . getEntity ( ) ; }
Process HTTP GET request and get the data as type specified as parameter.
Client accepts application/json MIME type.

@param clazz Class to which the data are unmarshalled
@param <T> module config
@param url Request URL
@throws Exception Thrown if some error occurs in communication with server
@return Unmarshalled entity data
Process HTTP GET request and get the data as type specified as parameter . Client accepts application / json MIME type .