Class RecordableURL

java.lang.Object
com.easypost.easyvcr.clients.httpurlconnection.RecordableURL

public final class RecordableURL extends Object
A recordable URL, wrapper for RecordableHttpURLConnection and RecordableHttpsURLConnection.
  • Constructor Details

    • RecordableURL

      public RecordableURL(String protocol, String host, int port, String file, URLStreamHandler handler, Cassette cassette, Mode mode, AdvancedSettings advancedSettings) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      protocol - The protocol of the URL.
      host - The host of the URL.
      port - The port of the URL.
      file - The file of the URL.
      handler - The URLStreamHandler of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      advancedSettings - The advanced settings used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(String protocol, String host, int port, String file, URLStreamHandler handler, Cassette cassette, Mode mode) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      protocol - The protocol of the URL.
      host - The host of the URL.
      port - The port of the URL.
      file - The file of the URL.
      handler - The URLStreamHandler of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(String protocol, String host, int port, String file, Cassette cassette, Mode mode, AdvancedSettings advancedSettings) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      protocol - The protocol of the URL.
      host - The host of the URL.
      port - The port of the URL.
      file - The file of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      advancedSettings - The advanced settings used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(String protocol, String host, int port, String file, Cassette cassette, Mode mode) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      protocol - The protocol of the URL.
      host - The host of the URL.
      port - The port of the URL.
      file - The file of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(String protocol, String host, String file, Cassette cassette, Mode mode, AdvancedSettings advancedSettings) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      protocol - The protocol of the URL.
      host - The host of the URL.
      file - The file of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      advancedSettings - The advanced settings used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(String protocol, String host, String file, Cassette cassette, Mode mode) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      protocol - The protocol of the URL.
      host - The host of the URL.
      file - The file of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(URL context, String spec, URLStreamHandler handler, Cassette cassette, Mode mode, AdvancedSettings advancedSettings) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      context - The URL of the URL.
      spec - The spec of the URL.
      handler - The URLStreamHandler of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      advancedSettings - The advanced settings used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(URL context, String spec, URLStreamHandler handler, Cassette cassette, Mode mode) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      context - The URL of the URL.
      spec - The spec of the URL.
      handler - The URLStreamHandler of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(String spec, Cassette cassette, Mode mode, AdvancedSettings advancedSettings) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      spec - The spec of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      advancedSettings - The advanced settings used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(String spec, Cassette cassette, Mode mode) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      spec - The spec of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(URL context, String spec, Cassette cassette, Mode mode, AdvancedSettings advancedSettings) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      context - The URL of the URL.
      spec - The spec of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      advancedSettings - The advanced settings used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(URL context, String spec, Cassette cassette, Mode mode) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      context - The URL of the URL.
      spec - The spec of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(URL context, Cassette cassette, Mode mode, AdvancedSettings advancedSettings) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      context - The URL of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      advancedSettings - The advanced settings used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
    • RecordableURL

      public RecordableURL(URL context, Cassette cassette, Mode mode) throws MalformedURLException
      Constructs a new recordable URL.
      Parameters:
      context - The URL of the URL.
      cassette - The cassette used by this recordable URL.
      mode - The VCR mode used by this recordable URL.
      Throws:
      MalformedURLException - If the URL is malformed.
  • Method Details