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

com.didiglobal.logi.log.common.web.spring.RequestBodyCache Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package com.didiglobal.logi.log.common.web.spring;

/**
 * @author jinbinbin
 * @version $Id: RequestBodyCache.java, v 0.1 2017年07月25日 12:24 jinbinbin Exp $
 */
public class RequestBodyCache {

    private static ThreadLocal requestBodyThreadLocal = new ThreadLocal();

    public static void setRequestBody(String requestBody) {
        requestBodyThreadLocal.set(requestBody);
    }

    public static String getRequestBody() {
        return requestBodyThreadLocal.get();
    }

    public static void clearRequestBody() {
        requestBodyThreadLocal.remove();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy