org.restlet.ext.openid
Class OpenIdFormForwarder
java.lang.Object
org.restlet.ext.openid.OpenIdFormForwarder
public class OpenIdFormForwarder
- extends Object
Utility class.
- Author:
- Martin Svensson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenIdFormForwarder
public OpenIdFormForwarder()
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 postresource
- - existing or null
- Returns:
- response from OpenID OP
- Throws:
IOException
- - on failed html xml parsing.
Copyright © 2005-2013 Restlet.