public class SimonServletFilterUtils extends Object
SimonServletFilter
.Constructor and Description |
---|
SimonServletFilterUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getSimonName(String uri,
Replacer unallowedCharacterReplacer)
Returns Simon name for the specified request (local name without any configured prefix).
|
static RequestReporter |
initRequestReporter(javax.servlet.FilterConfig filterConfig)
Returns RequestReporter for the class specified for context parameter
SimonServletFilter.INIT_PARAM_REQUEST_REPORTER_CLASS . |
protected static StopwatchSource<javax.servlet.http.HttpServletRequest> |
initStopwatchSource(javax.servlet.FilterConfig filterConfig,
Manager manager)
Create and initialize the stopwatch source depending on the filter init parameters.
|
public SimonServletFilterUtils()
public static String getSimonName(String uri, Replacer unallowedCharacterReplacer)
uri
- request URIunallowedCharacterReplacer
- replacer for characters that are not allowed in Simon nameprotected static StopwatchSource<javax.servlet.http.HttpServletRequest> initStopwatchSource(javax.servlet.FilterConfig filterConfig, Manager manager)
SimonServletFilter.INIT_PARAM_STOPWATCH_SOURCE_CLASS
and whether
to cache results (SimonServletFilter.INIT_PARAM_STOPWATCH_SOURCE_CACHE
) can be adjusted.filterConfig
- Filter configurationpublic static RequestReporter initRequestReporter(javax.servlet.FilterConfig filterConfig)
SimonServletFilter.INIT_PARAM_REQUEST_REPORTER_CLASS
.Copyright © 2019. All rights reserved.