MonitoredHttpRequest extends MonitoredRequest { public String getRequestName() { if (servletPlugin.isMonitorOnlySpringMvcRequests() || servletPlugin.isMonitorOnlyResteasyRequests()) { return null; } else { return getRequestNameByRequest(httpServletRequest, servletPlugin); } } MonitoredHttpRequest(HttpServletRequest httpServletRequest,
								StatusExposingByteCountingServletResponse responseWrapper,
								FilterChain filterChain, ConfigurationRegistry configuration, ExecutorService userAgentParsingExecutor); @Override Span createSpan(); static String getClientIp(HttpServletRequest request); String getRequestName(); static String getRequestNameByRequest(HttpServletRequest request, ServletPlugin servletPlugin); static String removeSemicolonContent(String requestUri); @Override void execute(); static final String CONNECTION_ID_ATTRIBUTE; static final String WIDGET_ALLOWED_ATTRIBUTE; static final String MONITORED_HTTP_REQUEST_ATTRIBUTE; static final String USER_AGENT_PARSED_FUTURE_ATTRIBUTE; }
@Test public void testGetRequestName() throws Exception { final MonitoredHttpRequest monitoredHttpRequest = createMonitoredHttpRequest(new MockHttpServletRequest("GET", "/test.js")); assertEquals("GET *.js", monitoredHttpRequest.getRequestName()); }