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 java.lang.Object

PhraseanetApiCallService


Method Summary
static net.sf.json.JSONObject getPostResponse(java.lang.String strUrl, java.util.Map<java.lang.String,java.util.List<java.lang.String>> mapParameters)
          Get the response of a POST request
static net.sf.json.JSONObject getResponse(java.lang.String strRequest)
          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(java.lang.String strRequest)
                                          throws PhraseanetApiCallException
Get a response for a GET request

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

getPostResponse

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

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.