UnauthorizedException

com.google.api.server.spi.response

Class UnauthorizedException

  • java.lang.Object
    • ServiceException
      • com.google.api.server.spi.response.UnauthorizedException


  • public class UnauthorizedException
    extends ServiceException
    Unauthorized exception that is mapped to a 401 response.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String AUTH_SCHEME_BEARER 
    • Constructor Summary

      Constructors 
      Constructor and Description
      UnauthorizedException(java.lang.String message) 
      UnauthorizedException(java.lang.String statusMessage, java.lang.String reason) 
      UnauthorizedException(java.lang.String message, java.lang.String authScheme, java.util.Map<java.lang.String,java.lang.String> params)
      Creates an UnauthorizedException.
      UnauthorizedException(java.lang.String statusMessage, java.lang.String reason, java.lang.String domain) 
      UnauthorizedException(java.lang.String message, java.lang.String reason, java.lang.String domain, java.lang.String authScheme, java.util.Map<java.lang.String,java.lang.String> params) 
      UnauthorizedException(java.lang.String statusMessage, java.lang.String reason, java.lang.String domain, java.lang.Throwable cause) 
      UnauthorizedException(java.lang.String statusMessage, java.lang.String reason, java.lang.Throwable cause) 
      UnauthorizedException(java.lang.String message, java.lang.Throwable cause) 
      UnauthorizedException(java.lang.Throwable cause) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Map<java.lang.String,java.lang.String> getHeaders() 
      • Methods inherited from class java.lang.Object

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

      • AUTH_SCHEME_BEARER

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

      • UnauthorizedException

        public UnauthorizedException(java.lang.String message)
      • UnauthorizedException

        public UnauthorizedException(java.lang.Throwable cause)
      • UnauthorizedException

        public UnauthorizedException(java.lang.String message,
                                     java.lang.Throwable cause)
      • UnauthorizedException

        public UnauthorizedException(java.lang.String statusMessage,
                                     java.lang.String reason)
      • UnauthorizedException

        public UnauthorizedException(java.lang.String statusMessage,
                                     java.lang.String reason,
                                     java.lang.Throwable cause)
      • UnauthorizedException

        public UnauthorizedException(java.lang.String statusMessage,
                                     java.lang.String reason,
                                     java.lang.String domain)
      • UnauthorizedException

        public UnauthorizedException(java.lang.String statusMessage,
                                     java.lang.String reason,
                                     java.lang.String domain,
                                     java.lang.Throwable cause)
      • UnauthorizedException

        public UnauthorizedException(java.lang.String message,
                                     java.lang.String authScheme,
                                     java.util.Map<java.lang.String,java.lang.String> params)
        Creates an UnauthorizedException.
        Parameters:
        message - Error message to return
        authScheme - Auth scheme in the WWW-Authenticate header
        params - Parameters in the WWW-Authenticate header
      • UnauthorizedException

        public UnauthorizedException(java.lang.String message,
                                     java.lang.String reason,
                                     java.lang.String domain,
                                     java.lang.String authScheme,
                                     java.util.Map<java.lang.String,java.lang.String> params)
    • Method Detail

      • getHeaders

        public java.util.Map<java.lang.String,java.lang.String> getHeaders()

Send feedback about...

Cloud Endpoints Frameworks for App Engine