|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cybersource.ws.client.LoggerWrapper
An internal class used by the clients to encapsulate the logger, primarily to avoid having to check if the Logger object is null before logging. It implements Logger just so the clients can pass it to the exceptions' constructors.
| Field Summary |
| Fields inherited from interface com.cybersource.ws.client.Logger |
LT_EXCEPTION, LT_FAULT, LT_FILESTART, LT_INFO, LT_MERCHCFG, LT_PROXYCFG, LT_REPLY, LT_REQUEST, LT_TRANSTART |
| Constructor Summary | |
LoggerWrapper(Logger _logger,
boolean _prepare,
boolean _logTranStart,
MerchantConfig _mc)
Constructor. |
|
| Method Summary | |
Logger |
getLogger()
Returns the encapsulated Logger object. |
void |
log(java.lang.String type,
java.lang.String text)
Calls the encapsulated Logger object's log() method. |
void |
logTransactionStart()
Calls the encapsulated Logger object's logTransactionStart() method. |
void |
prepare()
Calls the encapsulated Logger object's prepare() method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LoggerWrapper(Logger _logger,
boolean _prepare,
boolean _logTranStart,
MerchantConfig _mc)
throws ConfigException
_logger - Logger object to encapsulate. May be null, in which
case, a LoggerImpl object will be created (unless
logging is not enabled)._prepare - Flag as to whether or not the logger's prepare() method
should be called._logTranStart - Flag as to whether or not the logger's
logTransactionStart() method should be called._mc - MerchantConfig object used to create and configure the
LoggerImpl object.
ConfigException - if the preparation fails.| Method Detail |
public void prepare()
throws ConfigException
prepare in interface LoggerConfigException - if preparation fails.public void logTransactionStart()
logTransactionStart in interface Logger
public void log(java.lang.String type,
java.lang.String text)
log in interface Loggertype - the log entry type.text - the actual text to be logged.public Logger getLogger()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||