All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.odpi.openmetadata.tokenmanager.http.HTTPHeadersThreadLocal Maven / Gradle / Ivy

/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.tokenmanager.http;

import java.util.Map;

/**
 * HTTPHeadersThreadLocal keeps ThreadLocal HTTP headers to be available for request thread.
 */
public class HTTPHeadersThreadLocal
{

    /**
     * HEADERS_THREAD_LOCAL is a ThreadLocal that holds a map of headers and their value
     */
    private static ThreadLocal> HEADERS_THREAD_LOCAL = new ThreadLocal<>();


    /**
     * Return the header values stored in thread local storage.
     *
     * @return thread local map
     */
    public static ThreadLocal> getHeadersThreadLocal() {
        return HEADERS_THREAD_LOCAL;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy