19202122232425
public SessionPool() { this(new SecureIdentifierPolicy()); } public SessionPool(SessionIdentifierPolicy policy) { this(policy, new SystemClock()); }
11121314151617
public class DateHeader extends AbstractMiddleware { private final Clock clock; public DateHeader() { this(new SystemClock()); }
21222324252627
private final Clock clock; private final Locale locale; private final TimeZone timeZone; public ApacheCommonLogger(Logger logger) { this(logger, new SystemClock()); }
6061626364656667686970
}} ); } public static void main(String[] args) throws IOException { SessionExample example = new SessionExample(new SystemClock()); // Run the default web server WebServer webServer = WebServer.create(); example.run(webServer); System.out.println("Access at " + webServer.uri()); }