pre- and post- processing procedure context common type.

Hierarchy

Properties

json: Json

Get the JSON helper for serializing/de-serializing JavaScript and Java types.

request: ScriptRequest

The original request object. This can be used to access headers and parameters passed in the original request.

response: ScriptResponse

The Response object. Can be used to modify cookies in the response.

Methods

  • Returns

    random ID every time this is called.

    Returns string

  • This method requires a java.net.URI. To pass in a string, use getWebServiceClientForUri instead.

    Returns

    a web service that makes arbitrary requests to the given URI.

    Parameters

    • uri: any

      URI (a Java URI)

    Returns ScriptWebServiceClient

  • Deprecated

    use getWebServiceClient(httpClientId, uri)

    Parameters

    • httpClientId: string

    Returns ScriptWebServiceClient

  • Creates a web service backed by a HTTP client configured with the given ID and targeting the given URI.

    The scheme of the given URI is discarded, as the backing HTTP client enforces the scheme of the final request URI

    Parameters

    • httpClientId: string
    • uri: string

    Returns ScriptWebServiceClient

  • Returns

    a web service that makes arbitrary requests to the given URI.

    Parameters

    • uri: string

    Returns ScriptWebServiceClient