Local in-memory cache based on Google's ConcurrentLinkedHashMap.
Adds logging functionality to our classes.
Adds logging functionality to our classes.
We try not to use this logger too often because it is synchronous. Most of Socko's logging is performed inside Akka because it is asynchronous.
Usage:
log.debug("Hello") log.error("Message: {} {}", Array[AnyRef]("value1", "value2"))
A web log event to record
A web log event to record
Timestamp for the event
Socko Web Server instance name
Client's socket address. We don't convert to string here in case JDK performs a blocknig reverse DNS lookup.
Server's socket address. We don't convert to string here in case JDK performs a blocknig reverse DNS lookup.
Authenticated user name
The action the client was trying to perform (for example, a GET method).
The resource accessed; for example, Default.htm.
The number of bytes received by the server.
The status of the action, in HTTP or FTP terms.
The number of bytes sent by the server.
The duration of time, in milliseconds, that this action consumed.
The protocol (HTTP, FTP) version used by the client. For HTTP this will be either HTTP/1.0 or HTTP/1.1.
The browser used on the client.
The previous site visited by the user. This site provided a link to the current site.
Default log writer that writes web log events to the AKKA logger.
Default log writer that writes web log events to the AKKA logger.
AKKA logger is used because it asynchronously writes to the log in a separate thread so it does not slow down your app.
A utility class that provides various constants related with character sets.
A utility class that provides various constants related with character sets.
This is a copy of the Netty CharsetUtil and is provided so that projects don't have to reference Netty directly.
A utility class for reading AKKA configuration
Utility methods associated with dates
Utility IO methods
MIME types lookup
MIME types lookup
This implementation uses
`MimetypesFileTypeMap` and relies on the presence of the file extension in a mime.types file.
See
Reflection utility functions
Web Server Activity Log setting
Utility classes and objects