Class HtmlPageTask

    • Constructor Summary

      Constructors 
      Constructor Description
      HtmlPageTask()
      Create an HTML page task.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • HTTP_OK

        public static int HTTP_OK
      • HTTP_OK_CREATED

        public static int HTTP_OK_CREATED
      • HTTP_OK_NO_CONTENT

        public static int HTTP_OK_NO_CONTENT
      • HTTP_BAD_REQUEST

        public static int HTTP_BAD_REQUEST
      • HTTP_NOT_IMPLEMENTED

        public static int HTTP_NOT_IMPLEMENTED
      • HTTP_SERVICE_UNAVALIABLE

        public static int HTTP_SERVICE_UNAVALIABLE
    • Constructor Detail

      • HtmlPageTask

        public HtmlPageTask()
        Create an HTML page task.
    • Method Detail

      • getPageId

        public java.lang.String getPageId()
        Get the identifier of the HTML page.
        Returns:
        The identifier.
      • setPageId

        public void setPageId​(java.lang.String pageId)
        Set the identifier of the HTML page.
        Parameters:
        pageId - The identifier.
      • getPageContent

        public java.lang.String getPageContent()
        Get the content of the HTML page.
        Returns:
        The content.
      • setPageContent

        public void setPageContent​(java.lang.String pageContent)
        Set the content of the HTML page.
        Parameters:
        pageContent - The content.
      • getMacros

        public java.util.Map<java.lang.String,​java.lang.String> getMacros()
        Get the HTML page macro set.
        Returns:
        The macro set.
      • setMacros

        public void setMacros​(java.util.Map<java.lang.String,​java.lang.String> macros)
        Set the HTML page macro set.
        Parameters:
        macros - The macro set.
      • getMacro

        public java.lang.String getMacro​(java.lang.String name)
        Get the value of the HTML page macro with the specified name.
        Parameters:
        name - The name.
        Returns:
        The value.
      • setMacro

        public 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.
        Parameters:
        name - The name.
        value - The value.
      • setStatusCode

        public void setStatusCode​(int code)
        Set the HTTP stataus code returned to the user
        Parameters:
        code - HTTP status code to set
      • getStatusCode

        public java.lang.Integer getStatusCode()
        Get the current status code of the return task
        Returns:
        HTTP status code