public class ModelHTTPSession extends AbstractModel implements HTTPSessionNotifiable
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_INFO, LEVEL_WARN, STR_LEVEL_DEBUG, STR_LEVEL_ERROR, STR_LEVEL_INFO, STR_LEVEL_WARN
Constructor and Description |
---|
ModelHTTPSession()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getLoggingLevel()
Gets the current logging level.
|
void |
handleAppEvent(AppEvent ape)
Allows the class to handle AppEvents.
|
void |
init()
Initializes the model.
|
void |
log(java.lang.String message)
Sends an app event off to the view to be logged.
|
void |
logDebug(java.lang.String message)
Logs a message with LEVEL_DEBUG.
|
void |
logError(java.lang.String message)
Logs a message with LEVEL_ERROR.
|
void |
logInfo(java.lang.String message)
Logs a message with LEVEL_INFO.
|
void |
logWarn(java.lang.String message)
Logs a message with LEVEL_WARN.
|
void |
sessionUpdated()
Sends a message off to the view to refresh the
the upper panel.
|
void |
setLoggingLevel(int loggingLevel)
Sets the current logging level.
|
void |
transactionDeleted(int row)
Indicates that a transaction was deleted.
|
void |
transactionInserted(int row)
Indicates that a transaction was inserted.
|
void |
transactionUpdated(HTTPTransaction transaction)
Sends a message off to the view to refresh the lower
panel if the transaction passed in is the current
transaction.
|
getController, setController
public ModelHTTPSession()
public void init()
public void log(java.lang.String message)
log
in interface Notifiable
log
in interface HTTPSessionNotifiable
message
- The message to be logged.public int getLoggingLevel()
getLoggingLevel
in interface Notifiable
public void setLoggingLevel(int loggingLevel)
setLoggingLevel
in interface Notifiable
loggingLevel
- The logging level, as defined by one of the
"LOGGING" constants.public void logDebug(java.lang.String message)
logDebug
in interface Notifiable
message
- The message to be logged.public void logInfo(java.lang.String message)
logInfo
in interface Notifiable
message
- The message to be logged.public void logWarn(java.lang.String message)
logWarn
in interface Notifiable
message
- The message to be logged.public void logError(java.lang.String message)
logError
in interface Notifiable
message
- The message to be logged.public void sessionUpdated()
sessionUpdated
in interface HTTPSessionNotifiable
public void transactionDeleted(int row)
transactionDeleted
in interface HTTPSessionNotifiable
row
- The sequence of the transaction
that was deleted.public void transactionInserted(int row)
transactionInserted
in interface HTTPSessionNotifiable
row
- The sequence of the transaction
that was inserted.public void transactionUpdated(HTTPTransaction transaction)
transactionUpdated
in interface HTTPSessionNotifiable
transaction
- The HTTPTransaction
that was updated.public void handleAppEvent(AppEvent ape)
handleAppEvent
in class AbstractModel
ape
- An AppEvent
.