Class LocaleJSONResolver
java.lang.Object
com.djrapitops.plan.delivery.webserver.resolver.json.LocaleJSONResolver
- All Implemented Interfaces:
NoAuthResolver
,Resolver
@Singleton
@Path("/v1/locale/{langCode}")
public class LocaleJSONResolver
extends Object
implements NoAuthResolver
Resolves JSON requests for /v1/locale and /v1/locale/
Enum.toString()
.-
Constructor Summary
ConstructorDescriptionLocaleJSONResolver
(LocaleSystem localeSystem, Locale locale, PlanFiles files, Addresses addresses) -
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.NoAuthResolver
canAccess, requiresAuth
Methods inherited from interface com.djrapitops.plan.delivery.web.resolver.Resolver
newResponseBuilder
-
Constructor Details
-
LocaleJSONResolver
@Inject public LocaleJSONResolver(LocaleSystem localeSystem, Locale locale, PlanFiles files, Addresses addresses)
-
-
Method Details
-
resolve
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:
-