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

org.odpi.openmetadata.http.HttpHeadersThreadLocal Maven / Gradle / Ivy

There is a newer version: 5.1
Show newest version
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.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<>();

    public static ThreadLocal> getHeadersThreadLocal() {
        return HEADERS_THREAD_LOCAL;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy