Class LoginResolver
- java.lang.Object
-
- com.djrapitops.plan.delivery.webserver.resolver.auth.LoginResolver
-
- All Implemented Interfaces:
NoAuthResolver
,Resolver
@Singleton public class LoginResolver extends java.lang.Object implements NoAuthResolver
-
-
Constructor Summary
Constructors Constructor Description LoginResolver(DBSystem dbSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
getResponse(java.lang.String cookie)
User
getUser(Request request)
java.util.Optional<Response>
resolve(Request request)
Implement request resolution.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.djrapitops.plan.delivery.web.resolver.NoAuthResolver
canAccess, requiresAuth
-
Methods inherited from interface com.djrapitops.plan.delivery.web.resolver.Resolver
newResponseBuilder
-
-
-
-
Constructor Detail
-
LoginResolver
@Inject public LoginResolver(DBSystem dbSystem)
-
-
Method Detail
-
resolve
public java.util.Optional<Response> resolve(Request request)
Description copied from interface:NoAuthResolver
Implement request resolution.- Specified by:
resolve
in interfaceNoAuthResolver
- Specified by:
resolve
in interfaceResolver
- Parameters:
request
- HTTP request, contains all information necessary to resolve the request.- Returns:
- Response or empty if the response should be 404 (not found).
- See Also:
for return value
-
getResponse
public Response getResponse(java.lang.String cookie)
-
-