public class HttpPipelineOptAddOn extends Object implements AddOn
Constructor and Description |
---|
HttpPipelineOptAddOn()
Constructs HttpPipelineOptAddOn.
|
HttpPipelineOptAddOn(int maxBufferSize)
Constructs HttpPipelineOptAddOn.
|
Modifier and Type | Method and Description |
---|---|
void |
setup(NetworkListener networkListener,
FilterChainBuilder builder)
The method, which will be invoked by
HttpServer in order to
initialize the AddOn on the passed NetworkListener . |
public HttpPipelineOptAddOn()
public HttpPipelineOptAddOn(int maxBufferSize)
maxBufferSize
- the max number of response bytes to buffer before flushpublic void setup(NetworkListener networkListener, FilterChainBuilder builder)
AddOn
HttpServer
in order to
initialize the AddOn on the passed NetworkListener
.
Most of the time the AddOn implementation will update the passed
NetworkListener
's FilterChainBuilder
by adding custom
Filter
(s), which implement
AddOn's logic.setup
in interface AddOn
networkListener
- the NetworkListener
the addon is being
initialized on.builder
- the FilterChainBuilder
,
representing the NetworkListener
logic.Copyright © 2015 Oracle Corporation. All rights reserved.