Class AbstractLocaleHandler
java.lang.Object
org.apache.struts2.interceptor.i18n.AbstractLocaleHandler
- All Implemented Interfaces:
LocaleHandler
- Direct Known Subclasses:
RequestLocaleHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected abstract ParameterfindLocaleParameter(ActionInvocation invocation, String parameterName) protected abstract LocalegetLocaleFromParam(String requestedLocale) protected abstract booleanisLocaleSupported(Locale locale) booleanIndicates if the locale should be persisted for the current request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.interceptor.i18n.LocaleHandler
find, read, store
-
Field Details
-
actionInvocation
-
-
Constructor Details
-
AbstractLocaleHandler
-
-
Method Details
-
shouldStore
public boolean shouldStore()Description copied from interface:LocaleHandlerIndicates if the locale should be persisted for the current request.- Specified by:
shouldStorein interfaceLocaleHandler- Returns:
truewhenLocaleHandler.store(ActionInvocation, Locale)should be invoked
-
disableStore
protected void disableStore() -
getLocaleFromParam
-
findLocaleParameter
-
isLocaleSupported
-