Package org.apache.wicket.settings
Class RequestLoggerSettings
- java.lang.Object
-
- org.apache.wicket.settings.RequestLoggerSettings
-
public class RequestLoggerSettings extends Object
- Author:
- Jonathan Locke, Chris Turner, Eelco Hillenius, Juergen Donnerstag, Johan Compagner, Igor Vaynberg (ivaynberg), Martijn Dashorst, James Carman
-
-
Constructor Summary
Constructors Constructor Description RequestLoggerSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getRecordSessionSize()
int
getRequestsWindowSize()
boolean
isRequestLoggerEnabled()
RequestLoggerSettings
setRecordSessionSize(boolean record)
Enable/Disable the recording of the session size for every request.RequestLoggerSettings
setRequestLoggerEnabled(boolean enable)
Enable/Disable the request logger.RequestLoggerSettings
setRequestsWindowSize(int size)
Set the window of all the requests that is kept in memory for viewing.
-
-
-
Constructor Detail
-
RequestLoggerSettings
public RequestLoggerSettings()
-
-
Method Detail
-
getRecordSessionSize
public boolean getRecordSessionSize()
- Returns:
- true if the session size is recorded. (default true)
-
getRequestsWindowSize
public int getRequestsWindowSize()
- Returns:
- The window size of the recorded requests. (default 0)
-
isRequestLoggerEnabled
public boolean isRequestLoggerEnabled()
- Returns:
- true if the request Logger is enabled. (default false)
-
setRecordSessionSize
public RequestLoggerSettings setRecordSessionSize(boolean record)
Enable/Disable the recording of the session size for every request.- Parameters:
record
-- Returns:
this
object for chaining
-
setRequestLoggerEnabled
public RequestLoggerSettings setRequestLoggerEnabled(boolean enable)
Enable/Disable the request logger.- Parameters:
enable
- boolean.- Returns:
this
object for chaining
-
setRequestsWindowSize
public RequestLoggerSettings setRequestsWindowSize(int size)
Set the window of all the requests that is kept in memory for viewing. Default is 0, You can let this to 0 then only Sessions data is recorded (number of request, total time, latest size)- Parameters:
size
-- Returns:
this
object for chaining
-
-