Class UnauthorizedResponseHelper


  • public class UnauthorizedResponseHelper
    extends java.lang.Object
    Helper class to send "401 Unauthorized" response
    Since:
    7.1
    • Constructor Summary

      Constructors 
      Constructor Description
      UnauthorizedResponseHelper​(javax.servlet.http.HttpServletResponse response, boolean keepConnection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addWWWAuthenticateHeader​(java.lang.String headerValue)  
      boolean hasWWWAuthenticateHeader()  
      void send​(javax.servlet.http.HttpServletRequest request, java.lang.String reason)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • WWW_AUTHENTICATE_HEADER

        @NotNull
        public static final java.lang.String WWW_AUTHENTICATE_HEADER
        See Also:
        Constant Field Values
    • Constructor Detail

      • UnauthorizedResponseHelper

        public UnauthorizedResponseHelper​(@NotNull
                                          javax.servlet.http.HttpServletResponse response,
                                          boolean keepConnection)
    • Method Detail

      • send

        public void send​(@NotNull
                         javax.servlet.http.HttpServletRequest request,
                         @Nullable
                         java.lang.String reason)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • addWWWAuthenticateHeader

        public void addWWWAuthenticateHeader​(@NotNull
                                             java.lang.String headerValue)
      • hasWWWAuthenticateHeader

        public boolean hasWWWAuthenticateHeader()