com.dyuproject.openid
Class FormRedirection

java.lang.Object
  extended by com.dyuproject.openid.FormRedirection
All Implemented Interfaces:
AuthRedirection

public final class FormRedirection
extends Object
implements AuthRedirection

Forwards the user to an html page that contains a form where the user will be automatically redirected upon page load.

Author:
David Yu
Date created:
Mar 17, 2009

Field Summary
static String DEFAULT_TITLE
           
 
Constructor Summary
FormRedirection()
           
FormRedirection(String title)
           
 
Method Summary
 String getTitle()
           
 void redirect(UrlEncodedParameterMap params, HttpServletRequest request, HttpServletResponse response)
          Redirects the user to the authentication url of his openid provider.
protected  void writeBody(Writer w, UrlEncodedParameterMap params, HttpServletRequest request)
           
protected  void writeHead(Writer w, UrlEncodedParameterMap params, HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TITLE

public static final String DEFAULT_TITLE
Constructor Detail

FormRedirection

public FormRedirection()

FormRedirection

public FormRedirection(String title)
Method Detail

getTitle

public String getTitle()

redirect

public void redirect(UrlEncodedParameterMap params,
                     HttpServletRequest request,
                     HttpServletResponse response)
              throws IOException
Description copied from interface: AuthRedirection
Redirects the user to the authentication url of his openid provider.

Specified by:
redirect in interface AuthRedirection
Throws:
IOException

writeHead

protected void writeHead(Writer w,
                         UrlEncodedParameterMap params,
                         HttpServletRequest request)
                  throws IOException
Throws:
IOException

writeBody

protected void writeBody(Writer w,
                         UrlEncodedParameterMap params,
                         HttpServletRequest request)
                  throws IOException
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.