public class WebScriptCallerImpl extends Object implements WebScriptCaller
| Constructor and Description |
|---|
WebScriptCallerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
get(String servicePath,
WebscriptResponseHandler handler,
List<WebscriptParam> params) |
void |
get(String servicePath,
WebscriptResponseHandler handler,
WebscriptParam... params) |
org.json.JSONObject |
getJsonObject(String servicePath,
List<WebscriptParam> params) |
org.json.JSONObject |
getJsonObject(String servicePath,
WebscriptParam... params) |
String |
getTicket(String user,
String password) |
void |
init() |
void |
post(String servicePath,
WebscriptResponseHandler handler,
List<WebscriptParam> params) |
void |
setAuthScope(org.apache.commons.httpclient.auth.AuthScope authScope) |
void |
setBaseUrl(String serviceLocation) |
void |
setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
Method that allows the default HttpClient instance to be replaced with one that is configured differently
|
void |
setPassword(String password) |
void |
setUsername(String username) |
public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
httpClient - public void setBaseUrl(String serviceLocation) throws URISyntaxException
URISyntaxExceptionpublic void setAuthScope(org.apache.commons.httpclient.auth.AuthScope authScope)
public void setUsername(String username)
public void setPassword(String password)
public void init()
public String getTicket(String user, String password)
getTicket in interface WebScriptCallerpublic org.json.JSONObject getJsonObject(String servicePath, List<WebscriptParam> params)
getJsonObject in interface WebScriptCallerpublic void get(String servicePath, WebscriptResponseHandler handler, List<WebscriptParam> params)
get in interface WebScriptCallerpublic void post(String servicePath, WebscriptResponseHandler handler, List<WebscriptParam> params)
post in interface WebScriptCallerpublic org.json.JSONObject getJsonObject(String servicePath, WebscriptParam... params)
getJsonObject in interface WebScriptCallerpublic void get(String servicePath, WebscriptResponseHandler handler, WebscriptParam... params)
get in interface WebScriptCallerCopyright © 2005–2014 Alfresco Software. All rights reserved.