/** * Sets {@link #headers}. * * @param headers * New value for {@link #headers} */ public void setHeaders(Map<String, String> headers) { this.headers = headers; // set tag value if it exists if (null != headers) { httpInfo.setInspectItTaggingHeaderValue(headers.get(INSPECTIT_TAGGING_HEADER)); } else { httpInfo.setInspectItTaggingHeaderValue(HttpInfo.UNDEFINED); } }
SearchCriteria wrong = new SearchCriteria("halB"); httpData.getHttpInfo().setInspectItTaggingHeaderValue("blaha"); searchCriteria.setCaseSensitive(false); assertThat(SearchFactory.isSearchCompatible(httpData, searchCriteria, repositoryDefinition), is(equalTo(true))); assertThat(SearchFactory.isSearchCompatible(httpData, wrong, repositoryDefinition), is(equalTo(false))); httpData.getHttpInfo().setInspectItTaggingHeaderValue(""); httpData.getHttpInfo().setUri("ablah"); searchCriteria.setCaseSensitive(false);
httpData.getHttpInfo().setInspectItTaggingHeaderValue("blaha"); invocationData.setTimerData(httpData); searchCriteria.setCaseSensitive(false);
/** * {@inheritDoc} */ @Override public IAggregatedData<HttpTimerData> getClone(HttpTimerData httpData) { AggregatedHttpTimerData clone = new AggregatedHttpTimerData(); clone.setPlatformIdent(httpData.getPlatformIdent()); clone.setSensorTypeIdent(httpData.getSensorTypeIdent()); clone.setMethodIdent(httpData.getMethodIdent()); clone.setCharting(httpData.isCharting()); if (uriBased) { clone.getHttpInfo().setUri(httpData.getHttpInfo().getUri()); } else { // Aggregation based on Usecase. We reset the URI so that we can easily know // that use case aggregation is used. clone.getHttpInfo().setUri(HttpInfo.UNDEFINED); clone.getHttpInfo().setInspectItTaggingHeaderValue(httpData.getHttpInfo().getInspectItTaggingHeaderValue()); } clone.getHttpInfo().setRequestMethod(httpData.getHttpInfo().getRequestMethod()); return clone; }