Class SourceAdapterHttp
java.lang.Object
us.irdev.bedrock.bag.SourceAdapter
us.irdev.bedrock.bag.SourceAdapterHttp
-
Field Summary
Fields inherited from class us.irdev.bedrock.bag.SourceAdapter
mimeType, stringData
-
Constructor Summary
ConstructorDescriptionSourceAdapterHttp
(String urlString) Read string data from a remote source given as a URL string, using GETSourceAdapterHttp
(String urlString, Bag postData, String postDataMimeType) Read string data from a remote source given as a URL string, using POSTSourceAdapterHttp
(URL url) Read string data from a remote source given as a URL, using GETSourceAdapterHttp
(URL url, Bag postData, String postDataMimeType) Read string data from a remote source given as a URL, using POST -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Sometimes a remote source is self-signed or not otherwise trustedMethods inherited from class us.irdev.bedrock.bag.SourceAdapter
getMimeType, getMimeType, getStringData, getStringData, setMimeType, setStringData
-
Constructor Details
-
SourceAdapterHttp
Read string data from a remote source given as a URL string, using GET- Parameters:
urlString
-- Throws:
IOException
-
SourceAdapterHttp
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
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
-