public abstract class HtmlPageTask extends java.lang.Object implements AuthenticationMechanismResultTask
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_BAD_REQUEST |
static int |
HTTP_NOT_IMPLEMENTED |
static int |
HTTP_OK |
static int |
HTTP_OK_CREATED |
static int |
HTTP_OK_NO_CONTENT |
static int |
HTTP_SERVICE_UNAVALIABLE |
Constructor and Description |
---|
HtmlPageTask()
Create an HTML page task.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(AuthenticationMechanismContext context)
This method is invoked by authentication service when it processes the
authentication result.
|
java.lang.String |
getMacro(java.lang.String name)
Get the value of the HTML page macro with the specified name.
|
java.util.Map<java.lang.String,java.lang.String> |
getMacros()
Get the HTML page macro set.
|
java.lang.String |
getPageContent()
Get the content of the HTML page.
|
java.lang.String |
getPageId()
Get the identifier of the HTML page.
|
java.lang.Integer |
getStatusCode()
Get the current status code of the return task
|
void |
setMacro(java.lang.String name,
java.lang.String value)
Set the value of the HTML page macro with the specified name with the
specified value.
|
void |
setMacros(java.util.Map<java.lang.String,java.lang.String> macros)
Set the HTML page macro set.
|
void |
setPageContent(java.lang.String pageContent)
Set the content of the HTML page.
|
void |
setPageId(java.lang.String pageId)
Set the identifier of the HTML page.
|
void |
setStatusCode(int code)
Set the HTTP stataus code returned to the user
|
public static int HTTP_OK
public static int HTTP_OK_CREATED
public static int HTTP_OK_NO_CONTENT
public static int HTTP_BAD_REQUEST
public static int HTTP_NOT_IMPLEMENTED
public static int HTTP_SERVICE_UNAVALIABLE
public java.lang.String getPageId()
public void setPageId(java.lang.String pageId)
pageId
- The identifier.public java.lang.String getPageContent()
public void setPageContent(java.lang.String pageContent)
pageContent
- The content.public java.util.Map<java.lang.String,java.lang.String> getMacros()
public void setMacros(java.util.Map<java.lang.String,java.lang.String> macros)
macros
- The macro set.public java.lang.String getMacro(java.lang.String name)
name
- The name.public void setMacro(java.lang.String name, java.lang.String value)
name
- The name.value
- The value.public void setStatusCode(int code)
code
- HTTP status code to setpublic java.lang.Integer getStatusCode()
public void execute(AuthenticationMechanismContext context)
AuthenticationMechanismResultTask
execute
in interface AuthenticationMechanismResultTask
context
- The authentication context.