Class AbstractLocalizationParentServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- net.anotheria.anosite.localization.AbstractLocalizationParentServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- Direct Known Subclasses:
LocalizationBundleMakeParentServlet,LocalizationBundlePreviewParentServlet
public abstract class AbstractLocalizationParentServlet extends jakarta.servlet.http.HttpServlet- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGGERprotected IASResourceDataServiceresourceDataService
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractLocalizationParentServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)protected StringgeKeyValuePairsAsString(Map<String,String> map)protected Map<String,String>getKeyValuePairsMap(List<String> values)protected List<String>getLocalizationValuesByLocale(LocalizationBundleDocument bundleDocument, String messagesKey)protected voidwriteResponse(jakarta.servlet.http.HttpServletResponse response, String jsonString)-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, service
-
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
resourceDataService
protected IASResourceDataService resourceDataService
-
-
Method Detail
-
getLocalizationValuesByLocale
protected List<String> getLocalizationValuesByLocale(LocalizationBundleDocument bundleDocument, String messagesKey)
-
getKeyValuePairsMap
protected Map<String,String> getKeyValuePairsMap(List<String> values) throws Exception
- Throws:
Exception
-
writeResponse
protected void writeResponse(jakarta.servlet.http.HttpServletResponse response, String jsonString) throws IOException- Throws:
IOException
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
IOException
-
-