/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }
/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }
/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }
/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }
/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }
/** * Set the <em>time zone</em> that will be used to represent dates. */ public AccessLogBuilder timeZone(TimeZone timeZone) { if (timeZone == null) throw new NullPointerException("Null time zone"); if (format instanceof ApacheLogFormat) { final ApacheLogFormat apacheFormat = (ApacheLogFormat) format; format = new ApacheLogFormat(timeZone, apacheFormat.getFormat()); return this; } throw new IllegalStateException("TimeZone can not be set for " + format.getClass().getName()); }
/** * Set the <em>format</em> as a {@link String} compatible with the default * {@linkplain ApacheLogFormat Apache access log format} that will be used * by the access logs configured by this instance. */ public AccessLogBuilder format(String format) { if (format == null) throw new NullPointerException("Null format"); return this.format(new ApacheLogFormat(format)); }