com.aoindustries.website.signup
Class SignupSelectServerActionHelper

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

public final class SignupSelectServerActionHelper
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.

Nested Class Summary
static class SignupSelectServerActionHelper.Server
           
 
Method Summary
static java.util.List<SignupSelectServerActionHelper.Server> getServers(javax.servlet.ServletContext servletContext, java.lang.String packageCategoryName)
          Gets the possible servers ordered by minimum 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

getServers

public static java.util.List<SignupSelectServerActionHelper.Server> getServers(javax.servlet.ServletContext servletContext,
                                                                               java.lang.String packageCategoryName)
                                                                        throws java.io.IOException,
                                                                               java.sql.SQLException
Gets the possible servers ordered by minimum 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