Package org.apache.wicket.protocol.http
Class IRequestLogger.RequestData
- java.lang.Object
-
- org.apache.wicket.protocol.http.IRequestLogger.RequestData
-
- All Implemented Interfaces:
Serializable
,IClusterable
- Enclosing interface:
- IRequestLogger
public static class IRequestLogger.RequestData extends Object implements IClusterable
This class hold the information one request of a session has.- Author:
- jcompagner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestData()
-
Method Summary
-
-
-
Constructor Detail
-
RequestData
public RequestData()
-
-
Method Detail
-
getTimeTaken
public Long getTimeTaken()
- Returns:
- The time taken for this request
-
setActiveRequest
public void setActiveRequest(int activeRequest)
- Parameters:
activeRequest
- The number of active request when this request happened
-
getActiveRequest
public int getActiveRequest()
- Returns:
- The number of active request when this request happened
-
getSessionInfo
public Object getSessionInfo()
- Returns:
- The session object info, created by
IRequestLogger.ISessionLogInfo.getSessionInfo()
-
setSessionInfo
public void setSessionInfo(Object sessionInfo)
Set the session info object of the session for this request.- Parameters:
sessionInfo
-
-
setSessionSize
public void setSessionSize(long sizeInBytes)
- Parameters:
sizeInBytes
-
-
setSessionId
public void setSessionId(String id)
- Parameters:
id
-
-
getStartDate
public Date getStartDate()
- Returns:
- The time taken for this request
-
getEventTarget
public IRequestHandler getEventTarget()
- Returns:
- The event target
-
getEventTargetClass
public Class<? extends IRequestHandler> getEventTargetClass()
- Returns:
- The class of the event target
-
getEventTargetLog
public ILogData getEventTargetLog()
- Returns:
- The log data for the eventTarget, or
NoLogData
if the request handler is not loggable
-
getResponseTarget
public IRequestHandler getResponseTarget()
- Returns:
- The response target
-
getResponseTargetClass
public Class<? extends IRequestHandler> getResponseTargetClass()
- Returns:
- The class of the response target
-
getResponseTargetLog
public ILogData getResponseTargetLog()
- Returns:
- The log data for the responseTarget, or
NoLogData
if the request handler is not loggable
-
getRequestedUrl
public String getRequestedUrl()
- Returns:
- the requested URL by the browser
-
setRequestedUrl
public void setRequestedUrl(String requestedUrl)
- Parameters:
requestedUrl
-
-
setResponseTarget
public void setResponseTarget(IRequestHandler target)
- Parameters:
target
-
-
setEventTarget
public void setEventTarget(IRequestHandler target)
- Parameters:
target
-
-
setTimeTaken
public void setTimeTaken(long timeTaken)
- Parameters:
timeTaken
-
-
addUserData
public void addUserData(String key, Object value)
- Parameters:
key
-value
-
-
getUserData
public Object getUserData(String key)
- Parameters:
key
-- Returns:
-
getUserData
public Map<String,Object> getUserData()
- Returns:
- the userData Map
-
getAlteredObjects
public String getAlteredObjects()
- Returns:
- All entries of the objects that are created/updated or removed in this request
-
getSessionId
public String getSessionId()
- Returns:
- The session id for this request
-
getSessionSize
public Long getSessionSize()
- Returns:
- The total session size.
-
-