That's simple: Set the properties "enabledForExtensions" and "gzipCompressing". That said, note the following hints:
That's as simple as enabling request compression: Set the properties "enabledForExtensions" and "gzipRequesting". That said, note the following hints:
Yes, use the class TimingOutCallback.
You've got to use a special type factory. An example is contained in the documentation on {{{advanced.html}advanced topics}}.
Set the property "enabledForExtensions". Note, that enabling the streaming mode doesn't mean, that all responses are served in streaming mode. It depends on the clients:
Basically you've got to provide an AuthenticationHandler. See the {{{server.html}server documentation}} for an example.
The PropertyHandlerMapping assumes, that request processors are POJO's (plain old java objects). However, this is not always desirable. For example, sometimes it is assumed that handlers need to be initialized by the servlet, which is configured through parameters.
The recommended solution is to configure your server with a special request processor factory.
That's a similar question than the question on initializing handlers. The main difference is, that in this case you want to initialize the handler with any request. So, here's how to do it: First of all, we assume that all handlers will implement an interface RequestInitializableHandler. This interface has an init method, which is being called to receive an object with the clients IP address: