public class WebMessageVisitor extends java.lang.Object implements LoggableVisitor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LAST_RECORD_SAVED_TIMESTAMP_CSS
Style for the section containing the timestamp of the last record saved (the timestamp itself)
|
static java.lang.String |
LAST_RECORD_SAVED_TIMESTAMP_TEXT_CSS
Style for the section containing the timestamp of the last record saved (the text indicating there will be a timestamp)
|
static int |
MAX_KEY_LENGTH
The default maximum length a key should be in the web interface before being hidden
|
static int |
MAX_VALUE_LENGTH
The default maximum length a value should be in the web interface before being hidden
|
static java.lang.String |
MESSAGE_BORDER_CSS
Style for the border around a message
|
static java.lang.String |
MESSAGE_DEBUG_CSS
Style for the border around a message
|
static java.lang.String |
MESSAGE_DEBUG_MODE_CSS
Style for the border around a message
|
static java.lang.String |
MESSAGE_ERROR_CSS
Style for the border around a message
|
static java.lang.String |
MESSAGE_HEADER_CSS
Style for the border around a message
|
static java.lang.String |
MESSAGE_INFO_CSS
Style for the border around a message
|
static java.lang.String |
MESSAGE_SCRAPING_SESSION_STOPPED_CSS
Style for the border around a message
|
static java.lang.String |
MESSAGE_TIMESTAMP_CSS
Style for the section containing the timestamp of a logged message (the timestamp itself)
|
static java.lang.String |
MESSAGE_TIMESTAMP_TEXT_CSS
Style for the section containing the timestamp of a logged message (the text indicating there will be a timestamp)
|
static java.lang.String |
MESSAGE_WARN_CSS
Style for the border around a message
|
static java.lang.String |
RECORD_SAVED_DUPLICATE_CSS
Style for the section containing record counts (duplicate)
|
static java.lang.String |
RECORD_SAVED_DUPLICATE_TEXT_CSS
Style for the section containing record counts (name duplicate)
|
static java.lang.String |
RECORD_SAVED_ERROR_CSS
Style for the section containing record counts (error)
|
static java.lang.String |
RECORD_SAVED_ERROR_TEXT_CSS
Style for the section containing record counts (name error)
|
static java.lang.String |
RECORD_SAVED_NEW_CSS
Style for the section containing record counts (new)
|
static java.lang.String |
RECORD_SAVED_NEW_TEXT_CSS
Style for the section containing record counts (name new)
|
static java.lang.String |
RECORD_SAVED_TOTAL_CSS
Style for the section containing record counts (total)
|
static java.lang.String |
RECORD_SAVED_TOTAL_TEXT_CSS
Style for the section containing record counts (name total)
|
static java.lang.String |
RECORD_SAVED_UPDATED_CSS
Style for the section containing record counts (duplicate)
|
static java.lang.String |
RECORD_SAVED_UPDATED_TEXT_CSS
Style for the section containing record counts (name duplicate)
|
static java.util.concurrent.atomic.AtomicLong |
UNIQUE_WEB_MESSAGE_ID
A unique ID used for web message sections involving java script
|
Constructor and Description |
---|
WebMessageVisitor()
Constructs the visitor for web messages
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Returns the message body to show in the web interface
|
void |
visit(LoggableValue value)
Performs the required operation on the given loggable value
|
public static final java.util.concurrent.atomic.AtomicLong UNIQUE_WEB_MESSAGE_ID
public static final java.lang.String MESSAGE_TIMESTAMP_TEXT_CSS
public static final java.lang.String MESSAGE_TIMESTAMP_CSS
public static final java.lang.String LAST_RECORD_SAVED_TIMESTAMP_TEXT_CSS
public static final java.lang.String LAST_RECORD_SAVED_TIMESTAMP_CSS
public static final java.lang.String RECORD_SAVED_TOTAL_TEXT_CSS
public static final java.lang.String RECORD_SAVED_TOTAL_CSS
public static final java.lang.String RECORD_SAVED_NEW_TEXT_CSS
public static final java.lang.String RECORD_SAVED_NEW_CSS
public static final java.lang.String RECORD_SAVED_DUPLICATE_TEXT_CSS
public static final java.lang.String RECORD_SAVED_DUPLICATE_CSS
public static final java.lang.String RECORD_SAVED_UPDATED_TEXT_CSS
public static final java.lang.String RECORD_SAVED_UPDATED_CSS
public static final java.lang.String RECORD_SAVED_ERROR_TEXT_CSS
public static final java.lang.String RECORD_SAVED_ERROR_CSS
public static final java.lang.String MESSAGE_BORDER_CSS
public static final java.lang.String MESSAGE_HEADER_CSS
public static final java.lang.String MESSAGE_SCRAPING_SESSION_STOPPED_CSS
public static final java.lang.String MESSAGE_DEBUG_MODE_CSS
public static final java.lang.String MESSAGE_DEBUG_CSS
public static final java.lang.String MESSAGE_INFO_CSS
public static final java.lang.String MESSAGE_WARN_CSS
public static final java.lang.String MESSAGE_ERROR_CSS
public static final int MAX_KEY_LENGTH
public static final int MAX_VALUE_LENGTH
public WebMessageVisitor()
public void visit(@NotNull LoggableValue value)
LoggableVisitor
visit
in interface LoggableVisitor
value
- The value to visit@NotNull public java.lang.String getMessage()