Class ConnectionFake

  • All Implemented Interfaces:
    com.logicommerce.sdk.resources.Connection

    public class ConnectionFake
    extends Object
    implements com.logicommerce.sdk.resources.Connection
    • Constructor Detail

      • ConnectionFake

        public ConnectionFake()
    • Method Detail

      • init

        public com.logicommerce.sdk.resources.Connection init​(String endPoint)
        Specified by:
        init in interface com.logicommerce.sdk.resources.Connection
      • get

        public com.logicommerce.sdk.resources.Response get()
                                                    throws com.logicommerce.sdk.resources.PluginResourceException
        Specified by:
        get in interface com.logicommerce.sdk.resources.Connection
        Throws:
        com.logicommerce.sdk.resources.PluginResourceException
      • post

        public com.logicommerce.sdk.resources.Response post​(String body)
                                                     throws com.logicommerce.sdk.resources.PluginResourceException
        Specified by:
        post in interface com.logicommerce.sdk.resources.Connection
        Throws:
        com.logicommerce.sdk.resources.PluginResourceException
      • put

        public com.logicommerce.sdk.resources.Response put​(String body)
                                                    throws com.logicommerce.sdk.resources.PluginResourceException
        Specified by:
        put in interface com.logicommerce.sdk.resources.Connection
        Throws:
        com.logicommerce.sdk.resources.PluginResourceException
      • patch

        public com.logicommerce.sdk.resources.Response patch​(String body)
                                                      throws com.logicommerce.sdk.resources.PluginResourceException
        Specified by:
        patch in interface com.logicommerce.sdk.resources.Connection
        Throws:
        com.logicommerce.sdk.resources.PluginResourceException
      • delete

        public com.logicommerce.sdk.resources.Response delete()
                                                       throws com.logicommerce.sdk.resources.PluginResourceException
        Specified by:
        delete in interface com.logicommerce.sdk.resources.Connection
        Throws:
        com.logicommerce.sdk.resources.PluginResourceException
      • authorization

        public com.logicommerce.sdk.resources.Connection authorization​(String authorization)
        Specified by:
        authorization in interface com.logicommerce.sdk.resources.Connection
      • path

        public com.logicommerce.sdk.resources.Connection path​(String path)
        Specified by:
        path in interface com.logicommerce.sdk.resources.Connection
      • contentType

        public com.logicommerce.sdk.resources.Connection contentType​(String contentType)
        Specified by:
        contentType in interface com.logicommerce.sdk.resources.Connection
      • acceptType

        public com.logicommerce.sdk.resources.Connection acceptType​(String acceptType)
        Specified by:
        acceptType in interface com.logicommerce.sdk.resources.Connection
      • params

        public com.logicommerce.sdk.resources.Connection params​(String params)
        Specified by:
        params in interface com.logicommerce.sdk.resources.Connection
      • header

        public com.logicommerce.sdk.resources.Connection header​(String name,
                                                                String value)
        Specified by:
        header in interface com.logicommerce.sdk.resources.Connection
      • cookie

        public com.logicommerce.sdk.resources.Connection cookie​(String name,
                                                                String value)
        Specified by:
        cookie in interface com.logicommerce.sdk.resources.Connection
      • timeout

        public com.logicommerce.sdk.resources.Connection timeout​(Integer arg0)
        Specified by:
        timeout in interface com.logicommerce.sdk.resources.Connection