Package org.pentaho.di.cluster
Class HttpUtil
java.lang.Object
org.pentaho.di.cluster.HttpUtil
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
constructUrl
(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments) Returns http GET request string using specified parameters.static String
constructUrl
(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments, boolean isSecure) static String
decodeBase64ZippedString
(String loggingString64) Base 64 decode, unzip and extract text usingConst.XML_ENCODING
predefined charset value for byte-wise multi-byte character handling.static String
static String
getPortSpecification
(VariableSpace space, String port)
-
Field Details
-
ZIP_BUFFER_SIZE
public static final int ZIP_BUFFER_SIZE- See Also:
-
-
Method Details
-
constructUrl
public static String constructUrl(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments) throws UnsupportedEncodingException Returns http GET request string using specified parameters.- Parameters:
space
-hostname
-port
-webAppName
-serviceAndArguments
-- Returns:
- Throws:
UnsupportedEncodingException
-
constructUrl
public static String constructUrl(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments, boolean isSecure) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
getPortSpecification
-
decodeBase64ZippedString
Base 64 decode, unzip and extract text usingConst.XML_ENCODING
predefined charset value for byte-wise multi-byte character handling.- Parameters:
loggingString64
- base64 zip archive string representation- Returns:
- text from zip archive
- Throws:
IOException
-
encodeBase64ZippedString
- Throws:
IOException
-