public class RemoteConnectorServiceImpl extends Object implements RemoteConnectorService
RemoteConnectorService, which performs requests to remote HTTP servers.| Constructor and Description |
|---|
RemoteConnectorServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
RemoteConnectorRequest |
buildRequest(String url,
Class<? extends org.apache.commons.httpclient.HttpMethodBase> method)
Builds a new Request object, using HttpClient method descriptions
|
RemoteConnectorRequest |
buildRequest(String url,
String method)
Builds a new Request object
|
static com.fasterxml.jackson.databind.JsonNode |
doExecuteJSONRequest(RemoteConnectorRequest request,
RemoteConnectorService service) |
com.fasterxml.jackson.databind.JsonNode |
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
|
public RemoteConnectorRequest buildRequest(String url, String method)
buildRequest in interface RemoteConnectorServicepublic RemoteConnectorRequest buildRequest(String url, Class<? extends org.apache.commons.httpclient.HttpMethodBase> method)
public RemoteConnectorResponse executeRequest(RemoteConnectorRequest request) throws IOException, org.alfresco.repo.security.authentication.AuthenticationException, RemoteConnectorClientException, RemoteConnectorServerException
executeRequest in interface RemoteConnectorServiceIOException - 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 requestpublic com.fasterxml.jackson.databind.JsonNode executeJSONRequest(RemoteConnectorRequest request) throws IOException, org.alfresco.repo.security.authentication.AuthenticationException
executeJSONRequest in interface RemoteConnectorServiceIOExceptionorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic static com.fasterxml.jackson.databind.JsonNode doExecuteJSONRequest(RemoteConnectorRequest request, RemoteConnectorService service) throws IOException, org.alfresco.repo.security.authentication.AuthenticationException
IOExceptionorg.alfresco.repo.security.authentication.AuthenticationExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.