Package org.eclnt.ccee.http
Class HttpDataTransfer
java.lang.Object
org.eclnt.ccee.http.HttpDataTransfer
Utitlity functions around accessing other systems by http
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateHeaderBasicAuthentication(String userName, String password) Creates the value for an HTTP Basic Authentication header.static voidinitialize(HttpDataTransfer instance) static HttpDataTransferinstance()byte[]readURLContent(String urlString, boolean withError) byte[]readURLContent(String urlString, String userName, String password, boolean withError) readUrlContentAsUTF8String(String urlString, boolean withError) readUrlContentAsUTF8String(String urlString, String userName, String password, boolean withError) byte[]
-
Constructor Details
-
HttpDataTransfer
public HttpDataTransfer()
-
-
Method Details
-
instance
-
initialize
-
readUrlContentAsUTF8String
-
readUrlContentAsUTF8String
-
readURLContent
-
readURLContent
-
createHeaderBasicAuthentication
Creates the value for an HTTP Basic Authentication header. The result needs to be added to the request header with key "Authorization".- Parameters:
userName- The user namepassword- The password- Returns:
- The value for the HTTP Basic Authentication header or null if userName or password is null
-
sendPost
-