Groovy Documentation

org.grails.plugin.resource
[Java] Class RequestUtil

java.lang.Object
  org.grails.plugin.resource.RequestUtil

public class RequestUtil

Copied from Tomcat original source from https://github.com/apache/tomcat/blob/trunk/java/org/apache/tomcat/util/http/RequestUtil.java


Constructor Summary
private RequestUtil()

 
Method Summary
static java.lang.String normalize(java.lang.String path)

Normalize a relative URI path that may have relative values ("/./", "/../", and so on ) it it.

static java.lang.String normalize(java.lang.String path, boolean replaceBackSlash)

Normalize a relative URI path that may have relative values ("/./", "/../", and so on ) it it.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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()
 

Constructor Detail

RequestUtil

private RequestUtil()


 
Method Detail

normalize

public static java.lang.String normalize(java.lang.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.
Parameters:
path - Relative path to be normalized


normalize

public static java.lang.String normalize(java.lang.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.
Parameters:
path - Relative path to be normalized
replaceBackSlash - Should '\\\\' be replaced with '/'


 

Groovy Documentation