public class ScriptRemote extends Object
This class also implements methods from the Connector interface so as to allow application developers to use it straight away against the configured default endpoint.
| Constructor and Description |
|---|
ScriptRemote() |
| Modifier and Type | Method and Description |
|---|---|
Response |
call(String uri)
Invoke a specific URI on the default endpoint
|
ScriptRemoteConnector |
connect()
Constructs a remote connector to a default endpoint (if configured).
|
ScriptRemoteConnector |
connect(String endpointId)
Constructs a RemoteClient to a specific endpoint.
|
String |
getEndpointDescription(String endpointId)
Returns the description of an endpoint
|
String[] |
getEndpointIds()
Returns a list of the application endpoint ids
|
String |
getEndpointName(String endpointId)
Returns the name of an endpoint
|
String |
getEndpointURL(String endpointId)
Returns the configured URL for the given endpoint
|
boolean |
isEndpointPersistent(String id) |
void |
setConnectorProvider(ConnectorProvider connectorProvider)
Sets the connector provider.
|
void |
setConnectorService(ConnectorService connectorService)
Sets the Connector Service.
|
public void setConnectorService(ConnectorService connectorService)
connectorService - ConnectorServicepublic void setConnectorProvider(ConnectorProvider connectorProvider)
connectorProvider - ConnectorProviderpublic ScriptRemoteConnector connect()
public ScriptRemoteConnector connect(String endpointId)
endpointId - the endpoint idpublic Response call(String uri)
uri - the uripublic String[] getEndpointIds()
public String getEndpointName(String endpointId)
endpointId - Stringpublic String getEndpointDescription(String endpointId)
endpointId - Stringpublic boolean isEndpointPersistent(String id)
Copyright © 2005–2016 Alfresco Software. All rights reserved.