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(com.google.common.base.Function<javax.ws.rs.core.Request,javax.ws.rs.core.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<javax.ws.rs.core.Request,javax.ws.rs.core.Request> transformation)
Add a transformation function as a next stage to the linear acceptor chain.

The order of the add(...) 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.

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.