Package com.jprofiler.api.agent
Class HttpUtil
- java.lang.Object
-
- com.jprofiler.api.agent.HttpUtil
-
public class HttpUtil extends java.lang.ObjectClass with helper methods for http splitting scripts
-
-
Constructor Summary
Constructors Constructor Description HttpUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetPathSegments(java.lang.String requestURI, int fromSegment, int toSegment, boolean replaceNumericIds)Returns the specified part of the request URI
-
-
-
Method Detail
-
getPathSegments
public static java.lang.String getPathSegments(java.lang.String requestURI, int fromSegment, int toSegment, boolean replaceNumericIds)Returns the specified part of the request URI- Parameters:
requestURI- the request URI fromjavax.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- iftruesegments that only contain numbers are replaced with<id>- Returns:
- the specified part of the request URI
-
-