public class ReturnUnauthorized extends java.lang.Object implements MissingAuthenticationHandler
When authentication is required but missing, response with Unauthorized
Constructor and Description |
---|
ReturnUnauthorized() |
Modifier and Type | Method and Description |
---|---|
void |
handle(ActionContext context)
Throw out a
Result when authentication is missing. |
org.osgl.mvc.result.Result |
result(ActionContext context)
The result to be thrown out when authentication is missing.
|
public org.osgl.mvc.result.Result result(ActionContext context)
MissingAuthenticationHandler
The result to be thrown out when authentication is missing.
This method is deprecated. Please use MissingAuthenticationHandler.handle(ActionContext)
instead.
result
in interface MissingAuthenticationHandler
public void handle(ActionContext context)
MissingAuthenticationHandler
Throw out a Result
when authentication is missing.
handle
in interface MissingAuthenticationHandler
context
- The action contextCopyright © 2014–2017 ActFramework. All rights reserved.