Top Description Inners Constructors Methods
org.glassfish.grizzly.http.server.util

public Class AggregatorAddOn

extends Object
implements AddOn
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.http.server.AddOn
Imports
java.io.IOException, org.glassfish.grizzly.filterchain.BaseFilter, .FilterChainBuilder, .FilterChainContext, .NextAction, org.glassfish.grizzly.http.HttpContent, org.glassfish.grizzly.http.server.AddOn, .HttpServerFilter, .NetworkListener

AggregatorAddOn installs AggregatorFilter into HttpServer FilterChain. 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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
setup(final NetworkListener networkListener, final FilterChainBuilder builder)

Implements org.glassfish.grizzly.http.server.AddOn.setup.

The method, which will be invoked by HttpServer in order to initialize the AddOn on the passed NetworkListener.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AggregatorAddOnback to summary
public AggregatorAddOn()

Method Detail

setupback to summary
public void setup(final NetworkListener networkListener, final FilterChainBuilder builder)

Implements org.glassfish.grizzly.http.server.AddOn.setup.

Doc from org.glassfish.grizzly.http.server.AddOn.setup.

The method, which will be invoked by 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 org.glassfish.grizzly.filterchain.Filter(s), which implement AddOn's logic.

Annotations
@Override
org.glassfish.grizzly.http.server.util back to summary

private Class AggregatorAddOn.AggregatorFilter

extends BaseFilter
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public NextAction
handleRead(final FilterChainContext ctx)

Overrides org.glassfish.grizzly.filterchain.BaseFilter.handleRead.

Implements org.glassfish.grizzly.filterchain.Filter.handleRead.

Execute a unit of processing work to be performed, when channel will become available for reading.

Inherited from org.glassfish.grizzly.filterchain.BaseFilter:
createContextexceptionOccurredhandleAccepthandleClosehandleConnecthandleEventhandleWriteonAddedonFilterChainChangedonRemovedtoString

Constructor Detail

AggregatorFilterback to summary
private AggregatorFilter()

Method Detail

handleReadback to summary
public NextAction handleRead(final FilterChainContext ctx) throws IOException

Overrides org.glassfish.grizzly.filterchain.BaseFilter.handleRead.

Implements org.glassfish.grizzly.filterchain.Filter.handleRead.

Doc from org.glassfish.grizzly.filterchain.BaseFilter.handleRead.

Execute a unit of processing work to be performed, when channel will become available for reading. This Filter may either complete the required processing and return false, or delegate remaining processing to the next Filter in a FilterChain containing this Filter by returning true.

Annotations
@Override