| Package | Description |
|---|---|
| org.springframework.extensions.webscripts | |
| org.springframework.extensions.webscripts.json |
| Modifier and Type | Method and Description |
|---|---|
Response |
ScriptRemote.call(String uri)
Invoke a specific URI on the default endpoint
|
Response |
ScriptRemoteConnector.call(String uri)
Invokes a URI on the endpoint via a GET request.
|
ScriptRemoteConnector |
ScriptRemote.connect()
Constructs a remote connector to a default endpoint (if configured).
|
ScriptRemoteConnector |
ScriptRemote.connect(String endpointId)
Constructs a RemoteClient to a specific endpoint.
|
Response |
ScriptRemoteConnector.del(String uri)
Invokes a URI on a remote service as DELETE request.
|
String |
ScriptableUtils.encodeHTML(String s) |
String |
ScriptableUtils.encodeJavaScript(String s) |
Response |
ScriptRemoteConnector.get(String uri)
Invokes a GET request URI on the endpoint.
|
RemoteConfigElement.EndpointDescriptor |
ScriptRemoteConnector.getDescriptor() |
String |
ScriptRemoteConnector.getEndpoint()
Returns the endpoint string
|
String |
ScriptRemote.getEndpointDescription(String endpointId)
Returns the description of an endpoint
|
String[] |
ScriptRemote.getEndpointIds()
Returns a list of the application endpoint ids
|
String |
ScriptRemote.getEndpointName(String endpointId)
Returns the name of an endpoint
|
String |
ScriptRemote.getEndpointURL(String endpointId)
Returns the configured URL for the given endpoint
|
boolean |
ScriptRemote.isEndpointPersistent(String id) |
boolean |
ScriptLogger.isLoggingEnabled() |
boolean |
ScriptLogger.isWarnLoggingEnabled() |
void |
ScriptLogger.log(String str) |
freemarker.ext.dom.NodeModel |
ScriptableUtils.parseXMLNodeModel(String xml)
Converts an xml string to a freemarker node model
|
Response |
ScriptRemoteConnector.post(String uri,
String body)
Invokes a URI on a remote service, passing the supplied body as a POST request.
|
Response |
ScriptRemoteConnector.post(String uri,
String body,
String contentType)
Invokes a URI on a remote service, passing the supplied body as a POST request.
|
Response |
ScriptRemoteConnector.put(String uri,
String body)
Invokes a URI on a remote service, passing the supplied body as a PUT request.
|
Response |
ScriptRemoteConnector.put(String uri,
String body,
String contentType)
Invokes a URI on a remote service, passing the supplied body as a PUT request.
|
String |
ScriptableUtils.replaceLineBreaks(String s) |
String |
ScriptableUtils.stripEncodeUnsafeHTML(String s) |
String |
ScriptableUtils.stripUnsafeHTML(String s) |
String |
ScriptableUtils.urlDecode(String s) |
String |
ScriptableUtils.urlEncode(String s) |
String |
ScriptableUtils.urlEncodeComponent(String s) |
void |
ScriptLogger.warn(String str) |
| Modifier and Type | Method and Description |
|---|---|
Object |
JSONUtils.encodeJSONString(Object value)
Encodes a JSON string value
|
org.json.simple.JSONObject |
JSONUtils.toJSONObject(Object object)
Converts the given JavaScript native object to a org.json.simple.JSONObject Java Object.
|
String |
JSONUtils.toJSONString(Object object)
Converts a given JavaScript native object and converts it to the relevant JSON string.
|
org.mozilla.javascript.NativeArray |
JSONUtils.toObject(org.json.simple.JSONArray jsonArray)
Takes a JSON array and converts it to a native JS array.
|
org.mozilla.javascript.NativeObject |
JSONUtils.toObject(org.json.simple.JSONObject jsonObject)
Takes a JSON object and converts it to a native JS object.
|
org.mozilla.javascript.ScriptableObject |
JSONUtils.toObject(String jsonString)
Takes a JSON string and converts it to a native java script object or array
|
Copyright © 2005–2021 Alfresco Software. All rights reserved.