public class HttpUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ZIP_BUFFER_SIZE |
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and 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 using
Const.XML_ENCODING predefined charset value for byte-wise
multi-byte character handling. |
static String |
encodeBase64ZippedString(String in) |
static String |
getPortSpecification(VariableSpace space,
String port) |
public static final int ZIP_BUFFER_SIZE
public static String constructUrl(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments) throws UnsupportedEncodingException
space
- hostname
- port
- webAppName
- serviceAndArguments
- UnsupportedEncodingException
public static String constructUrl(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments, boolean isSecure) throws UnsupportedEncodingException
UnsupportedEncodingException
public static String getPortSpecification(VariableSpace space, String port)
public static String decodeBase64ZippedString(String loggingString64) throws IOException
Const.XML_ENCODING
predefined charset value for byte-wise
multi-byte character handling.loggingString64
- base64 zip archive string representationIOException
public static String encodeBase64ZippedString(String in) throws IOException
IOException
Copyright © 2019 Hitachi Vantara. All rights reserved.