public class AgentEventDroplet extends DynamoServlet
This droplet has no output params.
Input params
Configurable properties:
#buildEvent(DynamoHttpServletRequest, DynamoHttpServletResponse, String, String)
Modifier and Type | Field and Description |
---|---|
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
|
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 |
---|
AgentEventDroplet() |
Modifier and Type | Method and Description |
---|---|
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
|
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 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
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 AgentEventpublic 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 requestjavax.servlet.ServletException
- an application specific error occurred
processing this requestjava.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)