Class SourceAdapterHttp

java.lang.Object
us.irdev.bedrock.bag.SourceAdapter
us.irdev.bedrock.bag.SourceAdapterHttp

public class SourceAdapterHttp extends SourceAdapter
  • Constructor Details

    • SourceAdapterHttp

      public SourceAdapterHttp(String urlString) throws IOException
      Read string data from a remote source given as a URL string, using GET
      Parameters:
      urlString -
      Throws:
      IOException
    • SourceAdapterHttp

      public SourceAdapterHttp(URL url) throws IOException
      Read string data from a remote source given as a URL, using GET
      Parameters:
      url -
      Throws:
      IOException
    • SourceAdapterHttp

      public SourceAdapterHttp(String urlString, Bag postData, String postDataMimeType) throws IOException
      Read string data from a remote source given as a URL string, using POST
      Parameters:
      urlString -
      postData -
      postDataMimeType -
      Throws:
      IOException
    • SourceAdapterHttp

      public SourceAdapterHttp(URL url, Bag postData, String postDataMimeType) throws IOException
      Read string data from a remote source given as a URL, using POST
      Parameters:
      url -
      postData -
      postDataMimeType -
      Throws:
      IOException
  • Method Details

    • trustAllHosts

      public static void trustAllHosts()
      Sometimes a remote source is self-signed or not otherwise trusted