Package net.targetr.wtm3.util
package net.targetr.wtm3.util
General timing, formatting and request-rate helpers for the server.
Clock provides wall-clock and elapsed-time
helpers; Rfc822Date parses and formats HTTP-style
dates in GMT. StringUtil supplies string and
template utilities, NiceLogFormatter formats Java
logging output, and HtmlErrorFormatter builds
default HTML error pages.
RateLimit tracks request activity by
identifier and rejects activity above its configured rate threshold. These
utilities support the transport layer; RCWeb-specific response templates and
external API helpers live in net.targetr.rc.util.
- Author:
- Dr Michael Gardiner
-
ClassesClassDescriptionAbstraction for the system clock.Formats error responses as HTML documents.Formats log output nicely.Counts requests per identifier in a window anchored at its first tracked request.Parses and formats RFC-822 dates.String utility methods.