org.glassfish.jersey.process.internal
Interface LinearAcceptor.Builder

Enclosing interface:
LinearAcceptor

public static interface LinearAcceptor.Builder

Linear acceptor chain builder.


Method Summary
 LinearAcceptor build()
          Build a acceptor chain.
 LinearAcceptor build(LinearAcceptor terminal)
          Add terminal acceptor to the acceptor chain and build the chain.
 LinearAcceptor.Builder to(ChainableAcceptor acceptor)
          Add a new chainable acceptor as a next stage to the linear acceptor chain.
 LinearAcceptor.Builder to(com.google.common.base.Function<Request,Request> transformation)
          Add a transformation function as a next stage to the linear acceptor chain.
 

Method Detail

to

LinearAcceptor.Builder to(com.google.common.base.Function<Request,Request> transformation)
Add a transformation function as a next stage to the linear acceptor chain.

The order of the to(...) method invocations matches the order of the acceptor execution in the request processor.

Parameters:
transformation - a transformation function to be added as a next acceptor to the linear acceptor chain.
Returns:
updated builder instance.

to

LinearAcceptor.Builder to(ChainableAcceptor acceptor)
Add a new chainable acceptor as a next stage to the linear acceptor chain.

The order of the to(...) method invocations matches the order of the acceptor execution in the request processor. A subsequent call to a to(...) method will automatically invoke the ChainableAcceptor.setDefaultNext(LinearAcceptor) method on the chainable acceptor.

Parameters:
acceptor - a chainable acceptor to be added as a next acceptor to the linear acceptor chain.
Returns:
updated builder instance.

build

LinearAcceptor build()
Build a acceptor chain.

Returns:
built acceptor chain.

build

LinearAcceptor build(LinearAcceptor terminal)
Add terminal acceptor to the acceptor chain and build the chain.

Parameters:
terminal - last acceptor to be added to the acceptor chain.
Returns:
built acceptor chain.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.