| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | Returns: true if the origin was validThe origin URI origin)Checks if a given origin is valid or not. |
| public static String | |
| public static String | Returns: The normalized path ornull if the path cannot be normalizedRelative path to be normalized path, boolean Should '\\' be replaced with '/' replaceBackSlash)Normalize a relative URI path that may have relative values ("/./", "/../", and so on ) it it Warning - This method is useful only for normalizing application-generated paths. |
| RequestUtil | back to summary |
|---|---|
| private RequestUtil() | |
| isSameOrigin | back to summary |
|---|---|
| public static boolean isSameOrigin(HttpServletRequest request, String origin) | |
| isValidOrigin | back to summary |
|---|---|
| public static boolean isValidOrigin(String origin) Checks if a given origin is valid or not. Criteria:
| |
| normalize | back to summary |
|---|---|
| public static String normalize(String path) Normalize a relative URI path that may have relative values ("/./", "/../", and so on ) it it Warning - This method is useful only for normalizing application-generated paths. It does not try to perform security checks for malicious input. | |
| normalize | back to summary |
|---|---|
| public static String normalize(String path, boolean replaceBackSlash) Normalize a relative URI path that may have relative values ("/./", "/../", and so on ) it it Warning - This method is useful only for normalizing application-generated paths. It does not try to perform security checks for malicious input. | |