org.restlet.ext.openid
Class OpenIdFormForwarder

java.lang.Object
  extended by org.restlet.ext.openid.OpenIdFormForwarder

public class OpenIdFormForwarder
extends Object

Utility class.

Author:
Martin Svensson

Constructor Summary
OpenIdFormForwarder()
           
 
Method Summary
static Representation handleFormRedirect(Representation input, ClientResource resource)
          Helper class to programmatically handle the OpenID 2.0 HTML Form redirection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenIdFormForwarder

public OpenIdFormForwarder()
Method Detail

handleFormRedirect

public static Representation handleFormRedirect(Representation input,
                                                ClientResource resource)
                                         throws IOException
Helper class to programmatically handle the OpenID 2.0 HTML Form redirection. The class can be added and if needed it will intercept and perform the post on behalf of the end user. In normal operation a browser would automatically post the form. There is no harm in having the forwarder in place even if there is no post there then the code would be skipped.

Parameters:
input - - html form to post
resource - - existing or null
Returns:
response from OpenID OP
Throws:
IOException - - on failed html xml parsing.


Copyright © 2005-2013 Restlet.