Class ServerPageResolver
java.lang.Object
com.djrapitops.plan.delivery.webserver.resolver.ServerPageResolver
- All Implemented Interfaces:
Resolver
Resolves /network, /server and /server/${name/uuid} URLs.
-
Constructor Summary
ConstructorDescriptionServerPageResolver(ResponseFactory responseFactory, DBSystem dbSystem, ServerInfo serverInfo)
-
Method Summary
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.Resolver
newResponseBuilder, requiresAuth
-
Constructor Details
-
ServerPageResolver
@Inject public ServerPageResolver(ResponseFactory responseFactory, DBSystem dbSystem, ServerInfo serverInfo)
-
-
Method Details
-
canAccess
Description copied from interface:Resolver
Implement access control if authorization is enabled.Is not called when access control is not active.
- Specified by:
canAccess
in interfaceResolver
- Parameters:
request
- HTTP request, contains all information necessary to check access.- Returns:
- true if allowed or invalid target, false if response should be 403 (forbidden)
- See Also:
for that has access permissions.
-
resolve
Description copied from interface:Resolver
Implement request resolution.- 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
,for path /example/path etc
,for parameters ?param=value etc
-