|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.droplet.EmptyFormHandler atg.droplet.GenericFormHandler atg.droplet.sql.SwitchDataSourceFormHandler
public class SwitchDataSourceFormHandler
This form handler allows a SwitchingDataSource to be switch through jhtml.
SwitchingDataSource
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.droplet.GenericFormHandler |
---|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
SwitchDataSourceFormHandler()
|
Method Summary | |
---|---|
java.lang.String |
getErrorURL()
where to go on error |
java.lang.String |
getNextDataSource()
The name of the data source to switch to. |
java.lang.String |
getSuccessURL()
Where to go on success |
SwitchingDataSource |
getSwitchingDataSource()
This is the data source being controlled by this form handler. |
boolean |
handlePrepareForSwitch(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Switching a data source is a two step process. |
boolean |
handleSwitchDataSource(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This handler method performs the second step in the switch process: the switch. |
void |
setErrorURL(java.lang.String pErrorURL)
|
void |
setNextDataSource(java.lang.String pNextDataSource)
|
void |
setSuccessURL(java.lang.String pSuccessURL)
|
void |
setSwitchingDataSource(SwitchingDataSource pSwitchingDataSource)
|
Methods inherited from class atg.droplet.EmptyFormHandler |
---|
afterGet, beforeGet |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public SwitchDataSourceFormHandler()
Method Detail |
---|
public void setSwitchingDataSource(SwitchingDataSource pSwitchingDataSource)
public SwitchingDataSource getSwitchingDataSource()
public void setNextDataSource(java.lang.String pNextDataSource)
public java.lang.String getNextDataSource()
public void setSuccessURL(java.lang.String pSuccessURL)
public java.lang.String getSuccessURL()
public void setErrorURL(java.lang.String pErrorURL)
public java.lang.String getErrorURL()
public boolean handlePrepareForSwitch(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- The request object.pResponse
- The response object.
javax.servlet.ServletException
java.io.IOException
SwitchingDataSource.prepareNextDataSource(java.lang.String)
public boolean handleSwitchDataSource(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- The request object.pResponse
- The response object.
javax.servlet.ServletException
java.io.IOException
SwitchingDataSource.performSwitch()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |