public class OpenamAPI extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
_bDebug |
static org.apache.log4j.Logger |
_logger |
| Constructor and Description |
|---|
OpenamAPI() |
| Modifier and Type | Method and Description |
|---|---|
String |
callMethod(String strMethod,
Map<String,String> mapParameters)
Call a Method of the API
|
String |
callMethod(String strMethod,
Map<String,String> mapParameters,
Map<String,String> mapHeaders)
Call a Method of the API
|
String |
callMethod(String strMethod,
Map<String,String> mapParameters,
Map<String,String> mapHeaders,
boolean bJSON)
Call a Method of the API
|
String |
callMethod(String strMethod,
Map<String,String> mapParameters,
Map<String,String> mapHeaders,
boolean bJSON,
boolean bGet)
Call a Method of the API
|
Map |
getMap()
Returns the Map
|
String |
getName()
Returns the Name
|
String |
getUrl()
Returns the Url
|
void |
setMap(Map map)
Sets the Map
|
void |
setName(String strName)
Sets the Name
|
void |
setUrl(String strUrl)
Sets the Url
|
public static org.apache.log4j.Logger _logger
public static boolean _bDebug
public String getName()
public void setName(String strName)
strName - The Namepublic String getUrl()
public void setUrl(String strUrl)
strUrl - The Urlpublic Map getMap()
public void setMap(Map map)
map - The Mappublic String callMethod(String strMethod, Map<String,String> mapParameters) throws OpenamAPIException
strMethod - The method namemapParameters - ParametersOpenamAPIException - if an error occurspublic String callMethod(String strMethod, Map<String,String> mapParameters, Map<String,String> mapHeaders) throws OpenamAPIException
strMethod - The method namemapParameters - ParametersmapHeaders - HeadersOpenamAPIException - if an error occurspublic String callMethod(String strMethod, Map<String,String> mapParameters, Map<String,String> mapHeaders, boolean bJSON) throws OpenamAPIException
strMethod - The method namemapParameters - ParametersbJSON - Is JSON outputOpenamAPIException - if an error occurspublic String callMethod(String strMethod, Map<String,String> mapParameters, Map<String,String> mapHeaders, boolean bJSON, boolean bGet) throws OpenamAPIException
strMethod - The method namemapParameters - ParametersbJSON - Is JSON outputOpenamAPIException - if an error occursCopyright © 2016 City of Paris. All rights reserved.