Tabnine Logo
TraceeFilterConfiguration.generatedRequestIdLength
Code IndexAdd Tabnine to your IDE (free)

How to use
generatedRequestIdLength
method
in
de.holisticon.util.tracee.configuration.TraceeFilterConfiguration

Best Java code snippets using de.holisticon.util.tracee.configuration.TraceeFilterConfiguration.generatedRequestIdLength (Showing top 3 results out of 315)

origin: de.holisticon.util.tracee.inbound/tracee-servlet

void httpRequestInitialized(HttpServletRequest request) {
  final TraceeFilterConfiguration configuration = backend.getConfiguration();
  if (configuration.shouldProcessContext(IncomingRequest)) {
    mergeIncomingContextToBackend(request);
  }
  if (configuration.shouldGenerateRequestId() && !backend.containsKey(TraceeConstants.REQUEST_ID_KEY)) {
    backend.put(TraceeConstants.REQUEST_ID_KEY, Utilities.createRandomAlphanumeric(configuration.generatedRequestIdLength()));
  }
  if (configuration.shouldGenerateSessionId() && !backend.containsKey(TraceeConstants.SESSION_ID_KEY)) {
    final HttpSession session = request.getSession(false);
    if (session != null) {
      backend.put(TraceeConstants.SESSION_ID_KEY, anonymizedSessionKey(session.getId(), configuration.generatedSessionIdLength()));
    }
  }
}
origin: de.holisticon.util.tracee.inbound/tracee-springmvc

@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object o) throws Exception {
  final TraceeFilterConfiguration configuration = backend.getConfiguration(profileName);
  if (configuration.shouldProcessContext(IncomingRequest))
    mergeIncomingContextToBackend(request, configuration);
  // create random RequestId if not already set
  if (!backend.containsKey(TraceeConstants.REQUEST_ID_KEY) && configuration.shouldGenerateRequestId()) {
    backend.put(TraceeConstants.REQUEST_ID_KEY, Utilities.createRandomAlphanumeric(configuration.generatedRequestIdLength()));
  }
  // create another random id to identify the http session
  if (!backend.containsKey(TraceeConstants.SESSION_ID_KEY) && configuration.shouldGenerateSessionId()) {
    final HttpSession session = request.getSession(false);
    if (session != null) {
      backend.put(TraceeConstants.SESSION_ID_KEY, Utilities.createAlphanumericHash(session.getId(),
          configuration.generatedSessionIdLength()));
    }
  }
  return true;
}
origin: de.holisticon.util.tracee/tracee-jaxws

protected final void handleIncoming(SOAPMessageContext context) {
  final SOAPPart soapPart = context.getMessage().getSOAPPart();
  try {
    final TraceeBackend backend = getTraceeBackend();
    final SOAPHeader header = soapPart.getEnvelope().getHeader();
    if (header != null && backend.getConfiguration().shouldProcessContext(IncomingRequest)) {
      final Map<String, String> parsedContext = transportSerialization.parse(header);
      final Map<String, String> filteredContext = backend.getConfiguration().filterDeniedParams(parsedContext, IncomingRequest);
      getTraceeBackend().putAll(filteredContext);
    }
    // generate request id if it doesn't exist
    if (getTraceeBackend().get(TraceeConstants.REQUEST_ID_KEY) == null
        && getTraceeBackend().getConfiguration().shouldGenerateRequestId()) {
      getTraceeBackend().put(TraceeConstants.REQUEST_ID_KEY,
          Utilities.createRandomAlphanumeric(getTraceeBackend().getConfiguration().generatedRequestIdLength()));
    }
  } catch (final SOAPException e) {
    traceeLogger.error("TraceeServerHandler - Error during precessing of inbound soap header");
  }
}
de.holisticon.util.tracee.configurationTraceeFilterConfigurationgeneratedRequestIdLength

Popular methods of TraceeFilterConfiguration

  • filterDeniedParams
    Returns a map that is a filtered copy of the given unfiltered map. It contains only keys, that are a
  • shouldGenerateRequestId
  • shouldProcessContext
  • generatedSessionIdLength
  • shouldGenerateSessionId

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Join (org.hibernate.mapping)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now