public class HttpUtil
extends java.lang.Object
| Constructor and Description |
|---|
HttpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getPathSegments(java.lang.String requestURI,
int fromSegment,
int toSegment,
boolean replaceNumericIds)
Returns the specified part of the request URI
|
public static java.lang.String getPathSegments(java.lang.String requestURI,
int fromSegment,
int toSegment,
boolean replaceNumericIds)
requestURI - the request URI from javax.servlet.http.HttpServletRequest.getRequestURI()fromSegment - the first segment to be included, the index is one-basedtoSegment - the last segment to be included, the index is one-basedreplaceNumericIds - if true segments that only contain numbers are replaced with <id>