lastAccessedTime = System.currentTimeMillis();
}
@Override
public String toString() {
MapBuilder mb = new MapBuilder();
DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, Locale.US);
fmt.setTimeZone(TimeZone.getTimeZone("GMT"));
mb.append("sessionID", sessionID);
mb.append("creationTime", creationTime <= 0 ? "n/a" : fmt.format(new Date(creationTime)));
mb.append("lastAccessedTime", lastAccessedTime <= 0 ? "n/a" : fmt.format(new Date(lastAccessedTime)));
mb.append("maxInactiveInterval", maxInactiveInterval);
return new ToStringBuilder().append("SessionModel").append(mb).toString();
}