public static interface Controller.HTTPRequestResolver
Interface for mapping HTTP requests to strings that are displayed in the JProfiler GUI. Each unique request string has a separately recorded call tree, so this interface can be used to control at what level of granularity the call tree should be split. The default behavior of JProfiler is that only the URI is considered significant and the query string is discarded.
Method Summary | |
---|---|
java.lang.String |
getSignificantPart(java.lang.String uri,
java.lang.String queryString)
Returns the significant part of a request string. |
Method Detail |
---|
java.lang.String getSignificantPart(java.lang.String uri, java.lang.String queryString)
Example: If you have a controller JSP that is called with a parameter page=xxx, you can extract the page parameter from queryString, append it to uri and return the resulting string. In that way, you will see separate call trees for each value of xxx.
uri
- the URI as returned by httpServletRequest.getRequestURI()queryString
- the query string as returned by httpServletRequest.getQueryString()