com.aoindustries.website.signup
Class SignupHelper

java.lang.Object
  extended by com.aoindustries.website.signup.SignupHelper

public final class SignupHelper
extends java.lang.Object

Utilities usable by any signup step.

Author:
AO Industries, Inc.

Method Summary
static
<T extends ActionForm>
T
getSessionActionForm(ActionServlet servlet, javax.servlet.http.HttpSession session, java.lang.Class<T> clazz, java.lang.String name)
          Gets the form of the provided class from the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSessionActionForm

public static <T extends ActionForm> T getSessionActionForm(ActionServlet servlet,
                                                            javax.servlet.http.HttpSession session,
                                                            java.lang.Class<T> clazz,
                                                            java.lang.String name)
                                                 throws java.lang.InstantiationException,
                                                        java.lang.IllegalAccessException
Gets the form of the provided class from the session. If it is not in the session will create the form, set its servlet, and add it to the session.

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException