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

com.eshore.uas.system.Current Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
package com.eshore.uas.system;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Current {
	static ThreadLocal current = new ThreadLocal();
	private HttpServletRequest request;
	private HttpServletResponse response;
	
	
	
	public static void set(HttpServletRequest req,HttpServletResponse resp) {
		Current curr = new Current();
		curr.request=req;
		curr.response=resp;
		current.set(curr);
	}
	
	public static Current get() {
		return current.get();
	}
	
	public HttpServletResponse getResponse() {
		return response;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy