public class LocalWebScriptConnectorServiceImpl
extends java.lang.Object
implements org.alfresco.service.cmr.remoteconnector.RemoteConnectorService
RemoteConnectorService
which talks to
the local webscripts onlyModifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_BASE_URL |
static java.lang.String |
LOCAL_SERVICE_URL |
Constructor and Description |
---|
LocalWebScriptConnectorServiceImpl(BaseWebScriptTest webScriptTest) |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.remoteconnector.RemoteConnectorRequest |
buildRequest(java.lang.String url,
java.lang.Class method)
Builds a new Request object, using HttpClient method descriptions
|
org.alfresco.service.cmr.remoteconnector.RemoteConnectorRequest |
buildRequest(java.lang.String url,
java.lang.String method)
Builds a new Request object
|
org.json.simple.JSONObject |
executeJSONRequest(org.alfresco.service.cmr.remoteconnector.RemoteConnectorRequest request)
Executes the given request, requesting a JSON response, and
returns the parsed JSON received back
|
org.alfresco.service.cmr.remoteconnector.RemoteConnectorResponse |
executeRequest(org.alfresco.service.cmr.remoteconnector.RemoteConnectorRequest request)
Executes the specified request, and return the response
|
public static final java.lang.String LOCAL_BASE_URL
public static final java.lang.String LOCAL_SERVICE_URL
public LocalWebScriptConnectorServiceImpl(BaseWebScriptTest webScriptTest) throws java.lang.Exception
java.lang.Exception
public org.alfresco.service.cmr.remoteconnector.RemoteConnectorRequest buildRequest(java.lang.String url, java.lang.String method)
buildRequest
in interface org.alfresco.service.cmr.remoteconnector.RemoteConnectorService
public org.alfresco.service.cmr.remoteconnector.RemoteConnectorRequest buildRequest(java.lang.String url, java.lang.Class method)
public org.alfresco.service.cmr.remoteconnector.RemoteConnectorResponse executeRequest(org.alfresco.service.cmr.remoteconnector.RemoteConnectorRequest request) throws java.io.IOException, org.alfresco.repo.security.authentication.AuthenticationException, org.alfresco.service.cmr.remoteconnector.RemoteConnectorClientException, org.alfresco.service.cmr.remoteconnector.RemoteConnectorServerException
executeRequest
in interface org.alfresco.service.cmr.remoteconnector.RemoteConnectorService
java.io.IOException
org.alfresco.repo.security.authentication.AuthenticationException
org.alfresco.service.cmr.remoteconnector.RemoteConnectorClientException
org.alfresco.service.cmr.remoteconnector.RemoteConnectorServerException
public org.json.simple.JSONObject executeJSONRequest(org.alfresco.service.cmr.remoteconnector.RemoteConnectorRequest request) throws org.json.simple.parser.ParseException, java.io.IOException, org.alfresco.repo.security.authentication.AuthenticationException
executeJSONRequest
in interface org.alfresco.service.cmr.remoteconnector.RemoteConnectorService
org.json.simple.parser.ParseException
- If the response is not valid JSONjava.io.IOException
org.alfresco.repo.security.authentication.AuthenticationException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.