Package com.composum.sling.core.servlet
Class TranslationServlet.TranslateStatus
- java.lang.Object
-
- com.composum.sling.core.servlet.TranslationServlet.TranslateStatus
-
- All Implemented Interfaces:
ServletOperation
- Enclosing class:
- TranslationServlet
protected class TranslationServlet.TranslateStatus extends Object implements ServletOperation
Translates (i18n) status-like information into a Status.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBOOTSTRAP_ERROR
-
Constructor Summary
Constructors Modifier Constructor Description protectedTranslateStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)Message.LevellevelOf(@NotNull String name)protected MessageparseMessage(Map<String,Object> data)Reads a message from the input format.protected voidreadFrom(BufferedReader reader, Status status)Parses the request format.
-
-
-
Field Detail
-
BOOTSTRAP_ERROR
public static final String BOOTSTRAP_ERROR
- See Also:
- Constant Field Values
-
-
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:
doItin interfaceServletOperation- Throws:
IOException
-
readFrom
protected void readFrom(BufferedReader reader, Status status)
Parses the request format.
-
parseMessage
protected Message parseMessage(Map<String,Object> data)
Reads a message from the input format.
-
levelOf
@NotNull public Message.Level levelOf(@NotNull @NotNull String name)
-
-