Class HTTPRequestContext


  • public class HTTPRequestContext
    extends Object
    Stores in thread local state related to the HTTP request being served by the thread.
    • Constructor Detail

      • HTTPRequestContext

        public HTTPRequestContext​(String clientIP,
                                  String userAgent)
    • Method Detail

      • getCurrent

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

        public String getClientIP()
      • getUserAgent

        public String getUserAgent()