Class HTTPRequestContext
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.server.HTTPRequestContext
-
public class HTTPRequestContext extends Object
Stores in thread local state related to the HTTP request being served by the thread.
-
-
Constructor Summary
Constructors Constructor Description HTTPRequestContext(String clientIP, String userAgent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClientIP()
static HTTPRequestContext
getCurrent()
String
getUserAgent()
static void
setCurrent(HTTPRequestContext context)
-
-
-
Method Detail
-
setCurrent
public static void setCurrent(HTTPRequestContext context)
-
getCurrent
public static HTTPRequestContext getCurrent() throws InternalException
- Throws:
InternalException
-
getClientIP
public String getClientIP()
-
getUserAgent
public String getUserAgent()
-
-