public class WebUtil
extends java.lang.Object
Constructor and Description |
---|
WebUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escape(java.lang.String str)
URL-encodes a string.
|
static java.lang.String |
escapeSessionVarChars(java.lang.String str)
Escapes out & and = symbols from a string.
|
static java.lang.String |
getEmptyStringForEmptyValue(java.lang.String value)
Returns an empty string if the given string is null,
-1, or 0.
|
static ScrapingSessionServiceAsync |
getScrapingSessionServiceAsync()
Gets an instance of
ScrapingSessionServiceAsync using
the default endpoint and such. |
static java.lang.String |
getZeroForEmptyValue(java.lang.String value)
Returns a 0 for a value considered to be empty.
|
static java.lang.String |
unescapeSessionVarChars(java.lang.String str)
Unescapes out & and = symbols from a string.
|
public static ScrapingSessionServiceAsync getScrapingSessionServiceAsync()
ScrapingSessionServiceAsync
using
the default endpoint and such.ScrapingSessionServiceAsync
.public static java.lang.String getEmptyStringForEmptyValue(java.lang.String value)
value
- The String
to check.public static java.lang.String getZeroForEmptyValue(java.lang.String value)
value
- The String
to check.public static java.lang.String escapeSessionVarChars(java.lang.String str)
str
- The string in which to replace.public static java.lang.String unescapeSessionVarChars(java.lang.String str)
str
- The string in which to replace.public static java.lang.String escape(java.lang.String str)