Class AggregatorAddOn
java.lang.Object
org.glassfish.grizzly.http.server.util.AggregatorAddOn
- All Implemented Interfaces:
AddOn
AggregatorAddOn installs
AggregatorAddOn.AggregatorFilter into HttpServer FilterChain. AggregatorAddOn.AggregatorFilter is
responsible for aggregating input HTTP message payload (either request or response) and pass it to the next filter in
chain only when entire HTTP message (including payload) is read.- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetup(NetworkListener networkListener, org.glassfish.grizzly.filterchain.FilterChainBuilder builder) The method, which will be invoked byHttpServerin order to initialize the AddOn on the passedNetworkListener.
-
Constructor Details
-
AggregatorAddOn
public AggregatorAddOn()
-
-
Method Details
-
setup
public void setup(NetworkListener networkListener, org.glassfish.grizzly.filterchain.FilterChainBuilder builder) The method, which will be invoked byHttpServerin order to initialize the AddOn on the passedNetworkListener. Most of the time the AddOn implementation will update the passedNetworkListener'sFilterChainBuilderby adding customFilter(s), which implement AddOn's logic.- Specified by:
setupin interfaceAddOn- Parameters:
networkListener- theNetworkListenerthe addon is being initialized on.builder- theFilterChainBuilder, representing theNetworkListenerlogic.
-