fr.paris.lutece.plugins.phraseanet.service.api
Class PhraseanetApiCallService

java.lang.Object
  extended by fr.paris.lutece.plugins.phraseanet.service.api.PhraseanetApiCallService

public final class PhraseanetApiCallService
extends Object

PhraseanetApiCallService


Method Summary
static net.sf.json.JSONObject getPostResponse(String strUrl, Map<String,List<String>> mapParameters, Account account)
          Get the response of a POST request
static net.sf.json.JSONObject getResponse(String strRequest, Account account)
          Get a response for a GET request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResponse

public static net.sf.json.JSONObject getResponse(String strRequest,
                                                 Account account)
                                          throws PhraseanetApiCallException
Get a response for a GET request

Parameters:
strRequest - The request
account - the user phraseanet account
Returns:
The response as a JSON object
Throws:
PhraseanetApiCallException - if an error occurs

getPostResponse

public static net.sf.json.JSONObject getPostResponse(String strUrl,
                                                     Map<String,List<String>> mapParameters,
                                                     Account account)
                                              throws PhraseanetApiCallException
Get the response of a POST request

Parameters:
strUrl - The URL
mapParameters - The parameters
account - the user account
Returns:
The response as a JSON object
Throws:
PhraseanetApiCallException - if an error occurs


Copyright © 2013 Mairie de Paris. All Rights Reserved.