|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.droplet.EmptyFormHandler
atg.droplet.GenericFormHandler
atg.projects.store.fulfillment.SettleElectronicGoodsFormHandler
public class SettleElectronicGoodsFormHandler
This form handler is used to send a SettleElectronicGoods message to the fulfillment system. When the handleSettleElectronicGoods method is called, it builds a SettleElectronicGoods message with the order ID in the orderId property and sends it over the configured portName.
SettleElectronicGoods| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string. |
protected java.lang.String |
mErrorMessage
Error message. |
protected atg.commerce.messaging.MessageSender |
mMessageSender
Message sender. |
protected java.lang.String |
mOrderId
Order id. |
protected atg.commerce.order.OrderManager |
mOrderManager
Order manager. |
| 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 | |
|---|---|
SettleElectronicGoodsFormHandler()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getErrorMessage()
If there is an error, it will be reported here. |
atg.commerce.messaging.MessageSender |
getMessageSender()
Returns the component that has been configured through patchbay to send messages. |
java.lang.String |
getOrderId()
The id of the order containing the updated shipping groups. |
atg.commerce.order.OrderManager |
getOrderManager()
OrderManager is used to verify the orders existence before sending the message. |
boolean |
handleSettleElectronicGoods(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Create a SettleElectronicGoods message. |
void |
setErrorMessage(java.lang.String pErrorMessage)
Set message that will be reported if error occurs. |
void |
setMessageSender(atg.commerce.messaging.MessageSender pMessageSender)
Sets the component that has been configured through patchbay to send messages. |
void |
setOrderId(java.lang.String pOrderId)
Sets id of the order containing the updated shipping groups. |
void |
setOrderManager(atg.commerce.order.OrderManager pOrderManager)
|
| Methods inherited from class atg.droplet.GenericFormHandler |
|---|
addFormException, addUncheckedFormException, afterSet, beforeSet, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards |
| Methods inherited from class atg.droplet.EmptyFormHandler |
|---|
afterGet, beforeGet |
| Methods inherited from class atg.nucleus.GenericService |
|---|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, 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
protected atg.commerce.order.OrderManager mOrderManager
protected java.lang.String mOrderId
protected atg.commerce.messaging.MessageSender mMessageSender
protected java.lang.String mErrorMessage
| Constructor Detail |
|---|
public SettleElectronicGoodsFormHandler()
| Method Detail |
|---|
public void setOrderManager(atg.commerce.order.OrderManager pOrderManager)
pOrderManager - - order manager to set.public atg.commerce.order.OrderManager getOrderManager()
public void setOrderId(java.lang.String pOrderId)
pOrderId - - order idpublic java.lang.String getOrderId()
public void setMessageSender(atg.commerce.messaging.MessageSender pMessageSender)
pMessageSender - - component that send messagespublic atg.commerce.messaging.MessageSender getMessageSender()
public void setErrorMessage(java.lang.String pErrorMessage)
pErrorMessage - - error message textpublic java.lang.String getErrorMessage()
public boolean handleSettleElectronicGoods(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
messageSender
to send it to the rest of DCS.
pRequest - - Dynamo servlet requestpResponse - - Dynamo servlet response
java.io.IOException - - This exception indicates that a severe error occurs while
performing i/o operations
javax.servlet.ServletException - - This exception indicates that a servlet error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||