Package org.pentaho.di.cluster
Class HttpUtil
- java.lang.Object
-
- org.pentaho.di.cluster.HttpUtil
-
public class HttpUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
ZIP_BUFFER_SIZE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
encodeBase64ZippedString(String in)
static String
getPortSpecification(VariableSpace space, String port)
-
-
-
Field Detail
-
ZIP_BUFFER_SIZE
public static final int ZIP_BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public static String getPortSpecification(VariableSpace space, String port)
-
decodeBase64ZippedString
public static String decodeBase64ZippedString(String loggingString64) throws IOException
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
public static String encodeBase64ZippedString(String in) throws IOException
- Throws:
IOException
-
-