Package io.undertow.server.handlers
Class DateHandler
java.lang.Object
io.undertow.server.handlers.DateHandler
- All Implemented Interfaces:
HttpHandler
Deprecated.
Class that adds the Date: header to a HTTP response.
The current date string is cached, and is updated every second in a racey
manner (i.e. it is possible for two thread to update it at once).
This handler is deprecated, the same functionality is achieved by using the
server option ALWAYS_SET_DATE
.
It is enabled by default.
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(HttpServerExchange exchange) Deprecated.Handle the request.
-
Constructor Details
-
DateHandler
Deprecated.
-
-
Method Details
-
handleRequest
Deprecated.Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-