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 Details

    • HTTPRequestContext

      public HTTPRequestContext(String clientIP, String userAgent)
  • Method Details

    • setCurrent

      public static void setCurrent(HTTPRequestContext context)
    • getCurrent

      public static HTTPRequestContext getCurrent() throws pl.edu.icm.unity.base.exceptions.InternalException
      Throws:
      pl.edu.icm.unity.base.exceptions.InternalException
    • getClientIP

      public String getClientIP()
    • getUserAgent

      public String getUserAgent()