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 intZIP_BUFFER_SIZE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringconstructUrl(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments)Returns http GET request string using specified parameters.static StringconstructUrl(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments, boolean isSecure)static StringdecodeBase64ZippedString(String loggingString64)Base 64 decode, unzip and extract text usingConst.XML_ENCODINGpredefined charset value for byte-wise multi-byte character handling.static StringencodeBase64ZippedString(String in)static StringgetPortSpecification(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_ENCODINGpredefined 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
-
-