Class ServerTabJSONResolver<T>
java.lang.Object
com.djrapitops.plan.delivery.webserver.resolver.json.JSONResolver
com.djrapitops.plan.delivery.webserver.resolver.json.ServerTabJSONResolver<T>
- All Implemented Interfaces:
Resolver
Functional interface wrapper for resolving server specific JSON directly from other methods.
-
Constructor Summary
ConstructorDescriptionServerTabJSONResolver
(DataID dataID, WebPermission permission, Identifiers identifiers, ServerTabJSONCreator<T> jsonCreator, AsyncJSONResolverService asyncJSONResolverService) -
Method Summary
Methods inherited from class com.djrapitops.plan.delivery.webserver.resolver.json.JSONResolver
getCachedOrNewResponse
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
-
ServerTabJSONResolver
public ServerTabJSONResolver(DataID dataID, WebPermission permission, Identifiers identifiers, ServerTabJSONCreator<T> jsonCreator, AsyncJSONResolverService asyncJSONResolverService)
-
-
Method Details
-
getHttpLastModifiedFormatter
- Specified by:
getHttpLastModifiedFormatter
in classJSONResolver
-
canAccess
Description copied from interface:Resolver
Implement access control if authorization is enabled.Is not called when access control is not active.
- 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:
-
resolve
Description copied from interface:Resolver
Implement request resolution.- 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:
-