|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.admingui.common.handlers.LogViewHandlers
public class LogViewHandlers
| Field Summary | |
|---|---|
static java.lang.String |
CUSTOM_LOGGER_DELIMITERS
The following constant defines the valid delimiters that can be used to seperate custom loggers on input. |
static java.lang.Integer |
DEFAULT_NUMBER_TO_DISPLAY
If the number to display is not specified, this value will be used (40). |
static char |
EQUALS
This is the delimiter between the property name and property value. |
static java.lang.String |
FIRST_LOG_ROW
|
static int |
FROM_RECORD
|
static java.lang.String |
GET_DATE_FULL
This defines the full date format, used by DATE_FORMAT. |
static java.lang.String |
GET_DATE_LONG
This defines the long date format, used by DATE_FORMAT. |
static java.lang.String |
GET_DATE_MEDIUM
This defines the medium date format, used by DATE_FORMAT. |
static java.lang.String |
GET_DATE_SHORT
This defines the short date format, used by DATE_FORMAT. |
static java.lang.String |
LAST_LOG_ROW
|
static java.lang.String |
LEVEL_IMAGE_ROOT
This is the root directory of the alert images |
static java.lang.String |
NVP_DELIMITERS
The following constant defines the valid delimiters that can be used to seperate nvp entries on input. |
static long |
ONE_HOUR
|
static java.lang.String |
SHOW_LEVEL_IMAGE
This model key is set by the filter method, it is true if a level image should be displayed. |
static java.lang.String |
TIME_FORMAT
This specifies how TIME fields are input and displayed. |
static java.lang.String |
TIME_FORMAT_2
|
static java.lang.String |
TIME_FORMAT_3
|
| Constructor Summary | |
|---|---|
LogViewHandlers()
Creates a new instance of LogViewHandlers |
|
| Method Summary | |
|---|---|
protected static java.util.Date |
convertDateTime(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx,
java.lang.Object date,
java.lang.Object time)
This method converts a date/time string to a Date. |
protected static java.lang.String |
formatArrayForDisplay(java.lang.String[] diag)
This method formats the diagnostic to be displayed for HTML Add ' ' to each elements of the ArrayList and returns the String. |
static java.lang.String |
formatDateForDisplay(java.util.Locale locale,
java.util.Date date)
This method formats a log file date to a more readable date (based on locale). |
void |
getDate(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This method returns the current date (as a String). |
static void |
getFirstLastRecord(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the first and last log record. |
void |
getFormattedDateTime(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This method returns the formatted date (as a String). |
static void |
getLogQueryAttributes(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler creates a Map<String, String> which contains the QUERY_STRING parameters that should be passed to the REST logging endpoint to make a query with the given constraints. |
void |
getTime(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This method puts the current time (as a String) in the desired attribute. |
static void |
processLogRecords(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler creates a Map<String, String> which contains the QUERY_STRING parameters that should be passed to the REST logging endpoint to make a query with the given constraints. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GET_DATE_SHORT
public static final java.lang.String GET_DATE_MEDIUM
public static final java.lang.String GET_DATE_LONG
public static final java.lang.String GET_DATE_FULL
public static final java.lang.String TIME_FORMAT
public static final java.lang.String TIME_FORMAT_2
public static final java.lang.String TIME_FORMAT_3
public static final java.lang.Integer DEFAULT_NUMBER_TO_DISPLAY
public static final java.lang.String FIRST_LOG_ROW
public static final int FROM_RECORD
public static final java.lang.String LAST_LOG_ROW
public static final java.lang.String CUSTOM_LOGGER_DELIMITERS
public static final java.lang.String NVP_DELIMITERS
public static final char EQUALS
public static final java.lang.String SHOW_LEVEL_IMAGE
public static final java.lang.String LEVEL_IMAGE_ROOT
public static final long ONE_HOUR
| Constructor Detail |
|---|
public LogViewHandlers()
| Method Detail |
|---|
public static void getLogQueryAttributes(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler creates a Map<String, String> which contains the QUERY_STRING parameters that should be passed to the REST logging endpoint to make a query with the given constraints.
context - The HandlerContext.public static void processLogRecords(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler creates a Map<String, String> which contains the QUERY_STRING parameters that should be passed to the REST logging endpoint to make a query with the given constraints.
context - The HandlerContext.
protected static java.util.Date convertDateTime(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx,
java.lang.Object date,
java.lang.Object time)
request - The ServletRequestdate - The date as a String (or the date/time as a Date)time - The time as a String (or null)vd - The ViewDescriptor (for exception handling)view - The View (for exception handling)
public static java.lang.String formatDateForDisplay(java.util.Locale locale,
java.util.Date date)
public static void getFirstLastRecord(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the first and last log record.
Output value: "LogFileNames" -- Type: java.util.SelectItem
context - The HandlerContext.protected static java.lang.String formatArrayForDisplay(java.lang.String[] diag)
public void getTime(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This method puts the current time (as a String) in the desired attribute. The result attribute must be specified via an attribute named "getTimeResultAttribute"
public void getDate(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This method returns the current date (as a String). The DATE_FORMAT must be specified, if it is not this method will fail. You may set it to "short", "medium", "long", or "FULL".
If you do not set it to one of these values, you may set it to a valid format string.
public void getFormattedDateTime(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This method returns the formatted date (as a String).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||