Class Proxy


  • public class Proxy
    extends java.lang.Object
    Routing API requests through StackOne directly to the underlying provider.
    • Method Detail

      • async

        public AsyncProxy async()
        Switches to the async SDK.
        Returns:
        The async SDK
      • proxyRequest

        public StackoneProxyRequestResponse proxyRequest​(java.lang.String xAccountId,
                                                         ProxyRequestBody proxyRequestBody)
                                                  throws java.lang.Exception
        Proxy Request
        Parameters:
        xAccountId - The account identifier
        proxyRequestBody -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • proxyRequest

        public StackoneProxyRequestResponse proxyRequest​(java.lang.String xAccountId,
                                                         ProxyRequestBody proxyRequestBody,
                                                         java.util.Optional<Options> options)
                                                  throws java.lang.Exception
        Proxy Request
        Parameters:
        xAccountId - The account identifier
        proxyRequestBody -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails