## JProfiler API documentation

## com.jprofiler.api.agent
Interface Controller.HTTPRequestResolver

Enclosing class:
  Controller

    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

### getSignificantPart

    java.lang.String getSignificantPart(java.lang.String uri,
                                        java.lang.String queryString)

  Returns the significant part of a request string.

  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`.

  Parameters:
    `uri` - the URI as returned by `httpServletRequest.getRequestURI()`
    `queryString` - the query string as returned by `httpServletRequest.getQueryString()`
  Returns:
    the string that should be displayed in the JProfiler GUI