com.aoindustries.website.signup
Class SignupSelectPackageActionHelper

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

public final class SignupSelectPackageActionHelper
extends java.lang.Object

ManagedAction and DedicatedAction both use this to setup the request attributes. This is implemented here because inheritence is not possible and neither one is logically above the other.

Author:
AO Industries, Inc.

Method Summary
static java.util.List<com.aoindustries.aoserv.client.PackageDefinition> getPackageDefinitions(javax.servlet.ServletContext servletContext, java.lang.String packageCategoryName)
          Gets the active package definitions ordered by monthly rate.
static void printConfirmation(com.aoindustries.io.ChainWriter emailOut, com.aoindustries.aoserv.client.PackageDefinition packageDefinition)
           
static void setConfirmationRequestAttributes(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, SignupSelectPackageForm signupSelectPackageForm)
           
static void setRequestAttributes(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String packageCategoryName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setRequestAttributes

public static void setRequestAttributes(javax.servlet.ServletContext servletContext,
                                        javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response,
                                        java.lang.String packageCategoryName)
                                 throws java.io.IOException,
                                        java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

getPackageDefinitions

public static java.util.List<com.aoindustries.aoserv.client.PackageDefinition> getPackageDefinitions(javax.servlet.ServletContext servletContext,
                                                                                                     java.lang.String packageCategoryName)
                                                                                              throws java.io.IOException,
                                                                                                     java.sql.SQLException
Gets the active package definitions ordered by monthly rate.

Throws:
java.io.IOException
java.sql.SQLException

setConfirmationRequestAttributes

public static void setConfirmationRequestAttributes(javax.servlet.ServletContext servletContext,
                                                    javax.servlet.http.HttpServletRequest request,
                                                    SignupSelectPackageForm signupSelectPackageForm)
                                             throws java.io.IOException,
                                                    java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

printConfirmation

public static void printConfirmation(com.aoindustries.io.ChainWriter emailOut,
                                     com.aoindustries.aoserv.client.PackageDefinition packageDefinition)
                              throws java.io.IOException
Throws:
java.io.IOException