public final class ScriptRemoteConnector extends Object
| Constructor and Description |
|---|
ScriptRemoteConnector(Connector connector,
RemoteConfigElement.EndpointDescriptor descriptor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Response |
call(String uri)
Invokes a URI on the endpoint via a GET request.
|
Response |
del(String uri)
Invokes a URI on a remote service as DELETE request.
|
Response |
get(String uri)
Invokes a GET request URI on the endpoint.
|
RemoteConfigElement.EndpointDescriptor |
getDescriptor() |
String |
getEndpoint()
Returns the endpoint string
|
Response |
post(String uri,
String body)
Invokes a URI on a remote service, passing the supplied body as a POST request.
|
Response |
post(String uri,
String body,
String contentType)
Invokes a URI on a remote service, passing the supplied body as a POST request.
|
Response |
put(String uri,
String body)
Invokes a URI on a remote service, passing the supplied body as a PUT request.
|
Response |
put(String uri,
String body,
String contentType)
Invokes a URI on a remote service, passing the supplied body as a PUT request.
|
public ScriptRemoteConnector(Connector connector, RemoteConfigElement.EndpointDescriptor descriptor)
connector - The Connector to wrapdescriptor - The description of the endpoint this connector is managingpublic Response call(String uri)
uri - the uriResponsepublic Response get(String uri)
uri - the uriResponsepublic Response post(String uri, String body)
uri - Uri to call on the endpointbody - Body of the POST request.Responsepublic Response post(String uri, String body, String contentType)
uri - Uri to call on the endpointbody - Body of the POST request.contentType - Content mimetype of the request bodyResponsepublic Response put(String uri, String body)
uri - Uri to call on the endpointbody - Body of the PUT request.Responsepublic Response put(String uri, String body, String contentType)
uri - Uri to call on the endpointbody - Body of the PUT request.contentType - Content mimetype of the requestResponsepublic Response del(String uri)
uri - Uri to call on the endpointResponsepublic String getEndpoint()
public RemoteConfigElement.EndpointDescriptor getDescriptor()
Copyright © 2005–2021 Alfresco Software. All rights reserved.