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

Enclosing interface:
Responder

public static interface Responder.Builder

Linear acceptor chain builder.


Method Summary
 Responder build()
          Build a responder chain.
 Responder build(Responder terminal)
          Add terminal responder to the responder chain and build the chain.
 Responder.Builder to(com.google.common.base.Function<Response,Response> transformation)
          Add a transformation function as a next stage to the responder chain.
 

Method Detail

to

Responder.Builder to(com.google.common.base.Function<Response,Response> transformation)
Add a transformation function as a next stage to the responder chain.

The order of the add(...) method invocations matches the order of the responder execution in the response processor.

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

build

Responder build()
Build a responder chain.

Returns:
built responder chain.

build

Responder build(Responder terminal)
Add terminal responder to the responder chain and build the chain.

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


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