Package com.mku.fs.file
Class HttpSyncClient
- java.lang.Object
-
- com.mku.fs.file.HttpSyncClient
-
public class HttpSyncClient extends java.lang.ObjectHTTP client
-
-
Constructor Summary
Constructors Constructor Description HttpSyncClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.net.HttpURLConnectioncreateConnection(java.lang.String urlPath)Create a new connection from a urlstatic booleangetAllowClearTextTraffic()Check if clear text traffic (HTTP) is allowed, otherwise you need to use secure HTTPS protocols.static voidsetAllowClearTextTraffic(boolean allow)Set to true to allow clear text traffic (HTTP), otherwise you need to use secure HTTPS protocols.
-
-
-
Method Detail
-
getAllowClearTextTraffic
public static boolean getAllowClearTextTraffic()
Check if clear text traffic (HTTP) is allowed, otherwise you need to use secure HTTPS protocols. Clear text traffic should ONLY be used for testing purposes.- Returns:
- True if allow clear text traffic
-
setAllowClearTextTraffic
public static void setAllowClearTextTraffic(boolean allow)
Set to true to allow clear text traffic (HTTP), otherwise you need to use secure HTTPS protocols. Clear text traffic should ONLY be used for testing purposes.- Parameters:
allow- True to allow clear text traffic.
-
createConnection
public static java.net.HttpURLConnection createConnection(java.lang.String urlPath) throws java.io.IOExceptionCreate a new connection from a url- Parameters:
urlPath- The url- Returns:
- The connection
- Throws:
java.io.IOException- if error with IO
-
-