@Singleton public class LoginResolver extends java.lang.Object implements NoAuthResolver
Constructor and Description |
---|
LoginResolver(DBSystem dbSystem) |
Modifier and Type | Method and Description |
---|---|
Response |
getResponse(java.lang.String cookie) |
User |
getUser(Request request) |
java.util.Optional<Response> |
resolve(Request request)
Implement request resolution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canAccess, requiresAuth
newResponseBuilder
@Inject public LoginResolver(DBSystem dbSystem)
public java.util.Optional<Response> resolve(Request request)
NoAuthResolver
resolve
in interface NoAuthResolver
resolve
in interface Resolver
request
- HTTP request, contains all information necessary to resolve the request.for return value
public Response getResponse(java.lang.String cookie)