|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.ScriptRemote
public class ScriptRemote
Root-scope class that provides useful functions for working with endpoints, connectors and credentials. 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 Summary | |
---|---|
ScriptRemote()
|
Method Summary | |
---|---|
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 |
setConfigService(ConfigService configService)
Sets the configuration service. |
void |
setConnectorProvider(ConnectorProvider connectorProvider)
Sets the connector provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptRemote()
Method Detail |
---|
public void setConfigService(ConfigService configService)
configService
- public void setConnectorProvider(ConnectorProvider connectorProvider)
connectorProvider
- public ScriptRemoteConnector connect()
public ScriptRemoteConnector connect(String endpointId)
endpointId
- the endpoint id
public Response call(String uri)
uri
- the uri
public String[] getEndpointIds()
public String getEndpointName(String endpointId)
endpointId
-
public String getEndpointDescription(String endpointId)
endpointId
-
public boolean isEndpointPersistent(String id)
public String getEndpointURL(String endpointId)
endpointId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |