/** * Get value associated with default key {@code JK_CORR_SESSION_ID} * * @return value associated with default key {@code JK_CORR_SESSION_ID} */ public static String get() { return get(JK_CORR_SESSION_ID); }
/** * Associates the specified value with default key {@code JK_CORR_REQUEST_ID} with this map. * * @param value * value to be associated with default key {@code JK_CORR_REQUEST_ID} * @return null if no previous value exists, previous value */ public static String setRequestId(String value) { return set(JK_CORR_REQUEST_ID, value); }
/** * Obtain a context reference {@link ContextRef} for a specific object. Tracking reference is cached until * {{@link #clearRef(Object)} is called. Use this method to track object references across threads within the same * JVM. * * @param obj * object for which context reference is obtained * @return context reference associated with the specified object */ public ContextRef getRef(Object obj) { return getRef(obj, DefaultUUIDFactory.getInstance().newUUID()); }
/** * Associates the specified value with default key {@code JK_CORR_SESSION_ID} with this map. * * @param value * value to be associated with default key {@code JK_CORR_SESSION_ID} * @return null if no previous value exists, previous value */ public static String set(String value) { return set(JK_CORR_SESSION_ID, value); }
/** * Get value associated with default key {@code JK_CORR_REQUEST_ID} * * @return value associated with default key {@code JK_CORR_REQUEST_ID} */ public static String getRequestId() { return get(JK_CORR_REQUEST_ID); }