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

jodd.servlet.PageContextThreadLocal Maven / Gradle / Ivy

// Copyright (c) 2003-2012, Jodd Team (jodd.org). All Rights Reserved.

package jodd.servlet;

import javax.servlet.jsp.PageContext;

/**
 * Thread local storage for PageContext.
 */
public class PageContextThreadLocal {

	private static final ThreadLocal THREAD_LOCAL = new ThreadLocal();

	/**
	 * Sets page context to thread local variable.
	 */
	public static void set(PageContext pageContext) {
		THREAD_LOCAL.set(pageContext);
	}

	/**
	 * Returns page context from thread local variable.
	 */
	public static PageContext get() {
		return THREAD_LOCAL.get();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy