Class TextOutputCallback
- java.lang.Object
-
- org.forgerock.android.auth.callback.AbstractCallback
-
- org.forgerock.android.auth.callback.TextOutputCallback
-
- All Implemented Interfaces:
java.io.Serializable,Callback
- Direct Known Subclasses:
SuspendedTextOutputCallback
public class TextOutputCallback extends AbstractCallback
Callback to display information messages, warning messages and error messages.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intERRORError message.static intINFORMATIONInformation message.static intWARNINGWarning message.-
Fields inherited from class org.forgerock.android.auth.callback.AbstractCallback
_id, content, VALUE
-
-
Constructor Summary
Constructors Constructor Description TextOutputCallback()TextOutputCallback(org.json.JSONObject raw, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()The messageintgetMessageType()The message typejava.lang.StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AMprotected voidsetAttribute(java.lang.String name, java.lang.Object value)-
Methods inherited from class org.forgerock.android.auth.callback.AbstractCallback
get_id, getContent, getContentAsJson, getInputValue, getInputValue, getName, setContent, setValue, setValue
-
-
-
-
Field Detail
-
INFORMATION
public static final int INFORMATION
Information message.- See Also:
- Constant Field Values
-
WARNING
public static final int WARNING
Warning message.- See Also:
- Constant Field Values
-
ERROR
public static final int ERROR
Error message.- See Also:
- Constant Field Values
-
-
Method Detail
-
setAttribute
protected void setAttribute(java.lang.String name, java.lang.Object value)- Specified by:
setAttributein classAbstractCallback
-
getType
public java.lang.String getType()
Description copied from interface:CallbackReturn the type of the Callback, the type name should align with the Callback type returned from AM
-
getMessageType
public int getMessageType()
The message type
-
getMessage
public java.lang.String getMessage()
The message
-
-