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