Package org.owasp.esapi.logging.appender
Class ServerInfoSupplier
- java.lang.Object
-
- org.owasp.esapi.logging.appender.ServerInfoSupplier
-
public class ServerInfoSupplier extends java.lang.Object
Supplier 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.String
get()
void
setLogApplicationName(boolean log, java.lang.String appName)
Specify whether the instance should record the application namevoid
setLogServerIp(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
-true
to record
-
setLogApplicationName
public void setLogApplicationName(boolean log, java.lang.String appName)
Specify whether the instance should record the application name- Parameters:
log
-true
to recordappName
- String to record as the application name
-
-