public class WebUtilities extends java.lang.Object
Modifiers | Name | Description |
---|---|---|
interface |
WebUtilities.AttributeContainer |
|
static class |
WebUtilities.AttributeContainerMap |
|
static class |
WebUtilities.CanonicalizeMap |
|
static class |
WebUtilities.HttpSessionContainer |
|
static class |
WebUtilities.ServletContextContainer |
|
static class |
WebUtilities.ServletRequestContainer |
|
static class |
WebUtilities.SimpleEntry |
Modifiers | Name | Description |
---|---|---|
static byte |
allOsExecutables |
|
static java.util.Enumeration<java.lang.String> |
emptyStringEnum |
|
static byte[] |
javaClass |
|
static byte[] |
linuxElf |
|
static byte[] |
macOs |
|
static byte[] |
windowsPex |
Type Params | Return Type | Name and description |
---|---|---|
|
public static java.lang.Object |
canonicalizeValue(java.lang.Object orig) |
|
public static java.lang.String |
encodeHtml(java.lang.String original) |
|
public static java.lang.String |
encodeHtmlJsSafe(java.lang.CharSequence original) Sort of like JSON but output in JS syntax for HTML attributes like in a Vue Template |
|
public static java.lang.String |
encodeHtmlJsSafeCollection(java.util.Collection value) |
|
public static java.lang.String |
encodeHtmlJsSafeMap(java.util.Map fieldValues) |
|
public static java.lang.String |
encodeHtmlJsSafeObject(java.lang.Object value) |
|
public static java.lang.String |
fieldValuesEncodeHtmlJsSafe(java.util.Map fieldValues) |
|
public static java.util.Map<java.lang.String, java.lang.Object> |
getPathInfoParameterMap(java.lang.String pathInfoStr) |
|
public boolean |
hasMoreElements() |
|
public static boolean |
ip4Matches(java.lang.String patternString, java.lang.String address) Pattern may have a plain number, '*' for wildcard, or a '-' separated number range for each dot separated segment; may also have multiple comma-separated patterns |
|
public static boolean |
isExecutable(org.apache.commons.fileupload.FileItem item) Looks for byte patterns for Windows Portable Executable (4d5a), Linux ELF (7f454c46), Java class (cafebabe), macOS (feedface) |
|
public static boolean |
isExecutable(byte[] bytes) Looks for byte patterns for Windows Portable Executable (4d5a), Linux ELF (7f454c46), Java class (cafebabe), macOS (feedface) |
|
public java.lang.String |
nextElement() |
|
public static java.lang.String |
simpleHttpMapRequest(java.lang.String location, java.util.Map requestMap) |
|
public static java.lang.String |
simpleHttpStringRequest(java.lang.String location, java.lang.String requestBody, java.lang.String contentType) |
|
public static java.util.Map<java.lang.String, java.lang.Object> |
simplifyRequestParameters(javax.servlet.http.HttpServletRequest request, boolean bodyOnly) |
|
public static boolean |
testSerialization(java.lang.String name, java.lang.Object value) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Sort of like JSON but output in JS syntax for HTML attributes like in a Vue Template
Pattern may have a plain number, '*' for wildcard, or a '-' separated number range for each dot separated segment; may also have multiple comma-separated patterns
Looks for byte patterns for Windows Portable Executable (4d5a), Linux ELF (7f454c46), Java class (cafebabe), macOS (feedface)
Looks for byte patterns for Windows Portable Executable (4d5a), Linux ELF (7f454c46), Java class (cafebabe), macOS (feedface)