Package com.composum.sling.core.servlet
Class TranslationServlet.TranslateObject
- java.lang.Object
-
- com.composum.sling.core.servlet.TranslationServlet.TranslateObject
-
- All Implemented Interfaces:
ServletOperation
- Enclosing class:
- TranslationServlet
protected class TranslationServlet.TranslateObject extends Object implements ServletOperation
Translates (i18n) all strings in a given JSON.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TranslateObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)
-
-
-
Method Detail
-
doIt
public void doIt(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable @Nullable ResourceHandle resource) throws IOException
- Specified by:
doIt
in interfaceServletOperation
- Throws:
IOException
-
-