|
|||||||||
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.nucleus.TimedOperationService atg.nucleus.servlet.ServletService atg.nucleus.servlet.HttpServletService atg.servlet.DynamoServlet atg.agent.events.AgentEventDroplet
public class AgentEventDroplet
This droplet class can be used to create and send agent events from pages.
This droplet has no output params.
Input params
Configurable properties:
#buildEvent(DynamoHttpServletRequest, DynamoHttpServletResponse, String, String)
Field Summary | |
---|---|
static ParameterName |
ACTIVITY_TYPE_PARAM
the input parameter name for the activityType parameter |
protected static java.lang.String |
AGENTRESOURCES
|
static java.lang.String |
CLASS_VERSION
Class version string |
static ParameterName |
PROFILE_PARAM
the input parameter name for the profile parameter |
protected java.util.ResourceBundle |
sBundle
|
static ParameterName |
TICKET_ID_PARAM
the input parameter name for the ticketId parameter |
Fields inherited from class atg.servlet.DynamoServlet |
---|
mAllowCleanupRequest, mParameters |
Fields inherited from class atg.nucleus.servlet.ServletService |
---|
SERVLET_INFO_KEY |
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 | |
---|---|
AgentEventDroplet()
|
Method Summary | |
---|---|
protected AgentEvent |
buildEvent(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
RepositoryItem pProfile,
java.lang.String pActivityType,
java.lang.String pTicketId)
Builds the AgentEvent object that will be sent. |
java.lang.String |
getActivityType()
Returns the agent activity type used when creating new events |
protected java.lang.String |
getActivityType(DynamoHttpServletRequest pRequest)
Returns either the optional activity type input parameter value or the configured activity type. |
java.lang.String |
getAgentEventJMSType()
|
java.lang.String |
getAgentEventPortName()
|
AgentMessagingTools |
getAgentMessagingTools()
Returns component for sending agent messages |
protected RepositoryItem |
getProfile(DynamoHttpServletRequest pRequest)
Returns the profile parameter value. |
protected java.lang.String |
getTicketId(DynamoHttpServletRequest pRequest)
Returns the profile parameter value. |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Creates and sends the agent event using the message source defined in AgentMessagingTools. |
void |
setActivityType(java.lang.String pActivityType)
Sets the agent activity type used when creating new events |
void |
setAgentEventJMSType(java.lang.String pAgentEventJMSType)
Sets the JMS Type used for sending the agent events. |
void |
setAgentEventPortName(java.lang.String pAgentEventPortName)
Sets the property AgentEventPortName |
void |
setAgentMessagingTools(AgentMessagingTools pAgentMessagingTools)
Sets the component for sending agent messages |
Methods inherited from class atg.servlet.DynamoServlet |
---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
Methods inherited from class atg.nucleus.servlet.ServletService |
---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
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 final java.lang.String CLASS_VERSION
protected static final java.lang.String AGENTRESOURCES
protected final java.util.ResourceBundle sBundle
public static final ParameterName ACTIVITY_TYPE_PARAM
public static final ParameterName PROFILE_PARAM
public static final ParameterName TICKET_ID_PARAM
Constructor Detail |
---|
public AgentEventDroplet()
Method Detail |
---|
public void setAgentEventJMSType(java.lang.String pAgentEventJMSType)
pAgentEventJMSType
- the JMS Type used for sending the agent events.public java.lang.String getAgentEventJMSType()
public void setAgentEventPortName(java.lang.String pAgentEventPortName)
pAgentEventPortName
- The port name used by default for sending AgentEvents through the AgentMessageSource.public java.lang.String getAgentEventPortName()
public void setAgentMessagingTools(AgentMessagingTools pAgentMessagingTools)
pAgentMessagingTools
- public AgentMessagingTools getAgentMessagingTools()
public void setActivityType(java.lang.String pActivityType)
public java.lang.String getActivityType()
protected java.lang.String getActivityType(DynamoHttpServletRequest pRequest)
protected RepositoryItem getProfile(DynamoHttpServletRequest pRequest)
protected java.lang.String getTicketId(DynamoHttpServletRequest pRequest)
protected AgentEvent buildEvent(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, RepositoryItem pProfile, java.lang.String pActivityType, java.lang.String pTicketId)
pRequest
- pResponse
- pProfile
- the customer profile for the event.pActivityType
- the activity type of AgentEvent
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class DynamoServlet
pRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- an application specific error occurred
processing this request
java.io.IOException
- an error occurred reading data from the request
or writing data to the response.#buildEvent(DynamoHttpServletRequest, DynamoHttpServletResponse, String,String)
,
AgentMessageSource.sendAgentEventMessage(AgentEvent, String, String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |