Object
Utility helper class for campaigns and scenarios.
Object
ScenarioHelper
Field Summary |
public static final int |
|
public static final long |
|
public static final |
|
public static final boolean |
|
public static final int |
|
Constructor Summary |
Method Summary |
public static |
|
public static |
|
public static |
|
public static void |
|
public static void | |
public static void | |
public static |
|
public static boolean |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static | |
public static |
|
public static |
|
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void |
|
public static void |
|
public static void |
|
public static void |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static void |
|
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FALSE
public static final long GOAL_CHECK_TIME
This is always set to 300,000ms (5 minutes).
public static final String LOG_APP_NAME
public static final boolean LOG_VERBOSE
This is always initialized to false now.
Related Topics
public static final int TRUE
Constructor Detail |
public ScenarioHelper()
Method Detail |
public staticCheck if the value of the element's required attribute is in the list of possible values.StringcheckAttribute(Elemente,Stringname,String[] vals)
throwsIllegalArgumentException
IllegalArgumentException
public staticCheck if the value of the element's required attribute is the desired value.StringcheckAttribute(Elemente,Stringname,Stringval)
throwsIllegalArgumentException
IllegalArgumentException
public staticCheck if the value of the element's required attribute is one of the desired values.StringcheckAttribute(Elemente,Stringname,Stringval1,Stringval2)
throwsIllegalArgumentException
IllegalArgumentException
public static void close(Connection con)
Close a connection, ignoring any errors.
Related Topics
public static void close(Statement stmt)
Close a statement, ignoring any errors.
Related Topics
public static void close(ResultSet rs)
Close a result set, ignoring any errors.
Related Topics
public staticGet the value of an element's required attribute.StringgetAttribute(Elemente,Stringname)
throwsIllegalArgumentException
IllegalArgumentException
public static boolean getBoolean(Get a boolean from a numeric column.ResultSetrs, int index)
throwsSQLException
SQLException
Related Topics
ScenarioHelper.TRUE
ScenarioHelper.FALSE
public staticGet the campaign id from an Event.StringgetCampaignId(Eventevt)
This checks the following event attributes, in this order:
public staticGet the character data contained in the element.StringgetCharacterData(Elemente)
throwsIllegalArgumentException
If the character data is a CDATA section, it will be returned intact. Otherwise, it will be trimmed of leading and trailing whitespace.
IllegalArgumentException
public staticGet a default DocumentBuilder.DocumentBuildergetDocumentBuilder()
throwsSAXException
SAXException
public staticGet an either validating or non-validating DocumentBuilder.DocumentBuildergetDocumentBuilder(boolean validate)
throwsSAXException
SAXException
public staticGet a date from a the ISO 8601 formatted character data contained in an element.TimestampgetISO8601Date(Elemente)
throwsIllegalArgumentException
IllegalArgumentException
Related Topics
public staticGet the node's type as a string.StringgetNodeType(Noden)
public static String getNodeType(short type)
Get a string describing the Node type.
public staticGet the request from the event.RequestgetRequestFromEvent(Eventevt)
public staticGet the session from the event.SessiongetSessionFromEvent(Eventevt)
public staticGet the non-namespace-prefixed tag name of an element.StringgetTagName(Elemente)
Related Topics
public staticGet the user id from an Event.StringgetUserId(Eventevt)
This checks the following event attributes, in this order:
public staticGet a user profile wrapper for the given user id from the given request.ProfileWrappergetUserProfileWrapper(StringuserId,HttpServletRequestreq)
throwsProfileNotFoundException,RemoteException
This will first try the profile in the request/session, then it will attempt to retrieve a profile.
ProfileNotFoundException
RemoteException
Related Topics
public staticDetermine if the specified event represent a tracked user registration.String[] isTrackedUserRegistration(Eventevt)
DEPRECATED Use WLS logging instead
public static void log(int level,
String mesg,
Throwable ex)
Log a verbose campaign/scenario message.
DEPRECATED Use Debug instead
public static void logDebug(Log a debug campaign/scenario message.Stringmesg,Throwableex)
Related Topics
DEPRECATED Use Debug instead
public static void logDebug(String mesg)
Log a debug campaign/scenario message.
Related Topics
DEPRECATED Use WLS logging instead
public static void logError(Log an error campaign/scenario message.Stringmesg,Throwableex)
DEPRECATED Use WLS logging instead
public static void logError(String mesg)
Log an error campaign/scenario message.
DEPRECATED Use WLS logging instead
public static void logInfo(Log an informational campaign/scenario message.Stringmesg,Throwableex)
DEPRECATED Use WLS logging instead
public static void logInfo(String mesg)
Log an informational campaign/scenario message.
DEPRECATED Use Debug instead
public static void logVerbose(Log a verbose campaign/scenario message.Stringmesg,Throwableex)
Related Topics
DEPRECATED Use Debug instead
public static void logVerbose(String mesg)
Log a verbose campaign/scenario message.
Related Topics
DEPRECATED Use WLS logging instead
public static void logWarning(Log a warning campaign/scenario message.Stringmesg,Throwableex)
DEPRECATED Use WLS logging instead
public static void logWarning(String mesg)
Log a warning campaign/scenario message.
public staticParse an input source, using theDocumentparse(DocumentBuilderparser,InputSourcesrc)
throwsSAXException,IOException
DefaultEntityResolver.
SAXException
IOException
public staticParse an input source, using theDocumentparse(InputSourcesrc, boolean validate)
throwsSAXException,IOException
DefaultEntityResolver.
SAXException
IOException
public staticParse an input source, using theDocumentparse(InputSourcesrc)
throwsSAXException,IOException
DefaultEntityResolver.
SAXException
IOException
public staticParse an input stream, using theDocumentparse(Readerin, boolean validate)
throwsSAXException,IOException
DefaultEntityResolver.
SAXException
IOException
public staticParse an input stream, using theDocumentparse(Readerin)
throwsSAXException,IOException
DefaultEntityResolver.
SAXException
IOException
public static void setBoolean(Set a boolean in a numeric column.PreparedStatementstmt, int index, boolean b)
throwsSQLException
SQLException
Related Topics