public interface RemoteConnectorService
| Modifier and Type | Method and Description |
|---|---|
RemoteConnectorRequest |
buildRequest(java.lang.String url,
java.lang.String method)
Builds a new Request object, to talk to the given URL
with the supplied method
|
org.json.simple.JSONObject |
executeJSONRequest(RemoteConnectorRequest request)
Executes the given request, requesting a JSON response, and
returns the parsed JSON received back
|
RemoteConnectorResponse |
executeRequest(RemoteConnectorRequest request)
Executes the specified request, and return the response.
|
RemoteConnectorRequest buildRequest(java.lang.String url, java.lang.String method)
RemoteConnectorResponse executeRequest(RemoteConnectorRequest request) throws java.io.IOException, org.alfresco.repo.security.authentication.AuthenticationException, RemoteConnectorClientException, RemoteConnectorServerException
java.io.IOException - If there was a problem with the communication to the serverorg.alfresco.repo.security.authentication.AuthenticationException - If the authentication details supplied were not acceptedRemoteConnectorClientException - If the server indicates the client request was invalidRemoteConnectorServerException - If the server was itself unable to perform the requestorg.json.simple.JSONObject executeJSONRequest(RemoteConnectorRequest request) throws java.io.IOException, org.alfresco.repo.security.authentication.AuthenticationException, org.json.simple.parser.ParseException
org.json.simple.parser.ParseException - If the response is not valid JSONjava.io.IOExceptionorg.alfresco.repo.security.authentication.AuthenticationExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.