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

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

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

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

@Override
public final void sessionCreated(HttpSessionEvent httpSessionEvent) {
  if (backend.getConfiguration().shouldGenerateSessionId()) {
    final String sessionId = httpSessionEvent.getSession().getId();
    backend.put(TraceeConstants.SESSION_ID_KEY, anonymizedSessionKey(sessionId, backend.getConfiguration().generatedSessionIdLength()));
  }
}
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;
}
de.holisticon.util.tracee.configurationTraceeFilterConfigurationshouldGenerateSessionId

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
  • generatedRequestIdLength
  • shouldGenerateRequestId
  • shouldProcessContext
  • generatedSessionIdLength

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • 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