Class ConnectionFake

java.lang.Object
com.logicommerce.sdktest.resources.ConnectionFake
All Implemented Interfaces:
com.logicommerce.sdk.resources.Connection

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

    • ConnectionFake

      public ConnectionFake()
  • Method Details

    • 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(int timeout)
      Specified by:
      timeout in interface com.logicommerce.sdk.resources.Connection
    • queryParam

      public com.logicommerce.sdk.resources.Connection queryParam(String name, String value)
      Specified by:
      queryParam in interface com.logicommerce.sdk.resources.Connection
    • charset

      public com.logicommerce.sdk.resources.Connection charset(Charset charset)
      Specified by:
      charset in interface com.logicommerce.sdk.resources.Connection