public class TransactionDroplet
extends atg.droplet.ContextAffectingDropletImpl
The TransactionDroplet is used in a page to enclose an area of a page within its own transaction context behavior. Several transactional behaviors are available - the same set available for EJB's. The "output" OPARAM is rendered within the context of the specified transactional behavior. If any transaction-related error occurs, the "errorOutput" OPARAM is rendered after the "output" OPARAM is rendered, otherwise the "successOutput" is rendered after the "output" OPARAM is rendered. If a transaction-related error occurs before the "output" OPARAM is rendered, then the "output" OPARAM will not be rendered but the "errorOutput" OPARAM will.
The TransactionDroplet takes the following parameters:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static int |
TRANS_ATTRIBUTE_MANDATORY |
static int |
TRANS_ATTRIBUTE_NEVER |
static int |
TRANS_ATTRIBUTE_NOT_SUPPORTED |
static int |
TRANS_ATTRIBUTE_REQUIRED |
static int |
TRANS_ATTRIBUTE_REQUIRES_NEW |
static int |
TRANS_ATTRIBUTE_SUPPORTS |
static int |
TRANS_ATTRIBUTE_UNKNOWN |
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
TransactionDroplet()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
afterContent(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.Object pBeforeContentResult)
For backwards compatability with the method signature of afterContent.
|
void |
afterContent(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.Object pBeforeContentResult,
boolean pThrewException) |
java.lang.Object |
beforeContent(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse) |
void |
doService(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.Object pBeforeContentResult)
Do all the non setup/teardown work here.
|
javax.transaction.TransactionManager |
getTransactionManager() |
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager) |
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final int TRANS_ATTRIBUTE_UNKNOWN
public static final int TRANS_ATTRIBUTE_NOT_SUPPORTED
public static final int TRANS_ATTRIBUTE_SUPPORTS
public static final int TRANS_ATTRIBUTE_REQUIRED
public static final int TRANS_ATTRIBUTE_REQUIRES_NEW
public static final int TRANS_ATTRIBUTE_MANDATORY
public static final int TRANS_ATTRIBUTE_NEVER
public javax.transaction.TransactionManager getTransactionManager()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
public java.lang.Object beforeContent(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
beforeContent
in interface atg.droplet.ContextAffectingDroplet
beforeContent
in class atg.droplet.ContextAffectingDropletImpl
javax.servlet.ServletException
public void afterContent(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.Object pBeforeContentResult) throws javax.servlet.ServletException
javax.servlet.ServletException
public void afterContent(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.Object pBeforeContentResult, boolean pThrewException) throws javax.servlet.ServletException
afterContent
in interface atg.droplet.ContextAffectingDroplet
afterContent
in class atg.droplet.ContextAffectingDropletImpl
javax.servlet.ServletException
public void doService(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.Object pBeforeContentResult) throws javax.servlet.ServletException, java.io.IOException
doService
in class atg.droplet.ContextAffectingDropletImpl
pRequest
- the requestpResponse
- the responsepBeforeContentResult
- the result returned from beforeContent()javax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurs