Package org.owasp.esapi.logging.appender
Class ServerInfoSupplier
- java.lang.Object
-
- org.owasp.esapi.logging.appender.ServerInfoSupplier
-
public class ServerInfoSupplier extends java.lang.ObjectSupplier which can provide a String representing the server-side connection information.
-
-
Constructor Summary
Constructors Constructor Description ServerInfoSupplier(java.lang.String logName)Ctr.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget()voidsetLogApplicationName(boolean log, java.lang.String appName)Specify whether the instance should record the application namevoidsetLogServerIp(boolean log)Specify whether the instance should record the server connection info.
-
-
-
Method Detail
-
get
public java.lang.String get()
-
setLogServerIp
public void setLogServerIp(boolean log)
Specify whether the instance should record the server connection info.- Parameters:
log-trueto record
-
setLogApplicationName
public void setLogApplicationName(boolean log, java.lang.String appName)Specify whether the instance should record the application name- Parameters:
log-trueto recordappName- String to record as the application name
-
-