LogEvent class | HCL Digital Experience
The LogEvent class is the base class for all run-time logging events. The methods in this class are used to access all basic HTTP request information.
All run-time log data is accessible through the log event sub classes. These log events are constructed by either a rule trigger or a logging bean. They are then routed to the registered log listeners.
The direct subclasses of the LogEvent class are ActionEvent, CategoryEvent, CustomLogEvent, PageViewEvent, RatingEvent, and RuleEvent.
public class com.ibm.wcp.analysis.event.LogEvent extends com.ibm.wcp.analysis.event.Event
implements Serializable
Method | Explanation |
---|---|
|
Constructor |
|
Returns the cookies available with the request for this event. |
|
Sets the cookies for this event. Can be used by custom listeners in order to replace the cookie data received with the current JSP request. |
|
If enable is true, enables the collection of cookies for this event instance; otherwise, disables the collection of cookies for this event instance. If you want to collect cookie information with the FeedbackListener or a subclassed FeedbackListener, use this method. |
|
Same as enableLogCookies( true ) . |
|
Returns true if cookie information should be logged to the Feedback schema for this event; otherwise, returns false. |
|
Returns the Web client IP address. |
|
Sets the IP address for this event. Can be used by custom listeners in order to replace the IP address for the current JSP request. |
|
Returns the HTTP method used in the current JSP request (GET, POST). Note that the method is not stored in the Feedback schema. |
|
Sets the HTTP method for the current JSP request. Can be used by custom listeners in order to replace the method from the current JSP request. Note that the method is not stored in the Feedback schema. |
|
Returns the protocol for the current JSP request (HTTP or HTTPS). |
|
Sets the protocol for the current JSP request. Can be used by custom listeners in order to replace the protocol from the current JSP request. |
|
If enable is true, enables the collection of referral parameters for this event instance; otherwise, disables the collection of referral parameters for this event instance. If you want to collect the referral query string parameters with the FeedbackListener or a subclassed FeedbackListener, use this method. |
|
Same as enableLogReferralParms( true
) . |
|
Returns true if referral parameter information should be logged to the Feedback schema for this event; otherwise, return false. |
|
Returns the host name of the client machine that issued this JSP request. Note that the remote host name is not stored in the Feedback schema. |
|
Sets the host name of the client machine that issued this JSP request. Can be used by custom listeners that perform DNS resolution. Note that the remote host name is not stored in the Feedback schema. |
|
Returns the query string parameters for this event. |
|
Sets the query string parameters for this event. Can be used by custom listeners in order to replace the query string parameters for the current JSP request. |
|
If enable is true, enables the collection of query parameters for this event instance; otherwise, disables the collection of referral parameters for this event instance. If you want to collect the query string parameters with the FeedbackListener or a subclassed FeedbackListener, use this method. |
|
Same as enableLogQueryParms( true ) . |
|
Returns true if query parameter information should be logged to the Feedback schema for this event; otherwise, return false. |
|
Returns the URL of the referral page or null if there was no referrer. |
|
Sets the referral page for this event. Can be used by custom listeners in order to replace the referrer for the current JSP request. |
|
Returns the host name of the server machine that is processing this JSP request. Note that the server host name is not stored in the Feedback schema. |
|
Sets the host name of the server machine that is processing this JSP request. Can be used by custom listeners to set the name of the current server. Note that the server host name is not stored in the Feedback schema. |
|
Returns the id of the session for the current JSP request. |
|
Sets the id of the current user session. Can be used by custom listeners in order to replace the id of the current HttpSession object. This can be useful when an alternative session identification mechanism is used. |
|
Returns the time that this log event was generated. Note that this timestamp differs slightly from the time the event was received by the IBM® WebSphere® Application Server. Note that if there are multiple logging beans or content spots in a JSP, the timestamps in the generated log events will be the same. |
|
Sets the time for this log event. Can be used by custom listeners in order to replace the timestamp used for this event. |
|
Returns the URL of the page request encapsulated by this log event. |
|
Sets the URL of the page request for this event. Can be used by custom listeners in order to replace the URL for the current JSP request. |
|
Returns the HTTP authenticated user for the current session. |
|
Sets the user for this event. Can be used by custom listeners in order to replace the user for the current JSP request. This can be useful when an alternative authentication mechanism is used. |
|
Returns the browser engine for the current session. |
|
Sets the user agent for this event. Can be used by custom listeners in order to replace the user agent from the current JSP request. |
|
Returns a String representation of this event. |