@Component
public class Configuration
extends java.lang.Object
Target
and the configurable TimeZone.| Constructor and Description |
|---|
Configuration()
Constructor initializing the default timezone using
TimeUtils.getJvmTimeZone() |
| Modifier and Type | Method and Description |
|---|---|
java.util.TimeZone |
getClientTimeZone() |
java.lang.String |
getLocalTime(java.util.Date date)
Returns a String formatted Date/Time using the configured
clientTimeZone. |
Target |
getTarget()
Return the
Target which encapsulates not only the Target URI but also success/error messages + status. |
void |
setClientTimeZone(java.util.TimeZone clientTimeZone)
If not set, the used
TimeZone will default to TimeUtils.getJvmTimeZone(). |
void |
setTarget(Target target)
Set the XD Admin Server
Target. |
public Configuration()
TimeUtils.getJvmTimeZone()public Target getTarget()
Target which encapsulates not only the Target URI but also success/error messages + status.ConfigCommands.afterPropertiesSet().public void setTarget(Target target)
Target.target - Must not be null.public java.util.TimeZone getClientTimeZone()
TimeZone.public void setClientTimeZone(java.util.TimeZone clientTimeZone)
TimeZone will default to TimeUtils.getJvmTimeZone().clientTimeZone - Must not be nullpublic java.lang.String getLocalTime(java.util.Date date)
clientTimeZone.date - Can be null