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 String
BOOTSTRAP_ERROR
-
Constructor Summary
Constructors Modifier Constructor Description protected
TranslateStatus()
-
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)
Message.Level
levelOf(@NotNull String name)
protected Message
parseMessage(Map<String,Object> data)
Reads a message from the input format.protected void
readFrom(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:
doIt
in 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)
-
-