org.glassfish.jersey.process.internal
Interface LinearAcceptor

All Superinterfaces:
com.google.common.base.Function<Request,Pair<Request,com.google.common.base.Optional<LinearAcceptor>>>, Stage<Request,com.google.common.base.Optional<LinearAcceptor>>
All Known Implementing Classes:
PreMatchRequestFilterAcceptor, RequestFilterAcceptor

public interface LinearAcceptor
extends Stage<Request,com.google.common.base.Optional<LinearAcceptor>>

Linear request acceptor.

A continuation of a linear acceptor is represented by an (optional) single next linear acceptor resulting in a linear request transformation processing.

Author:
Marek Potociar (marek.potociar at oracle.com)

Nested Class Summary
static interface LinearAcceptor.Builder
          Linear acceptor chain builder.
 
Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage
Stage.Root
 
Method Summary
 Pair<Request,com.google.common.base.Optional<LinearAcceptor>> apply(Request data)
          Transforms supplied data and returns transformed data together with a processing continuation in the form of a <data, continuation> pair.
 
Methods inherited from interface com.google.common.base.Function
equals
 

Method Detail

apply

Pair<Request,com.google.common.base.Optional<LinearAcceptor>> apply(Request data)
Transforms supplied data and returns transformed data together with a processing continuation in the form of a <data, continuation> pair.

The returned continuation is (optionally) the next linear acceptor that should be invoked. A present continuation indicates the processing is expected to continue further, while absence of a continuation indicates that the unidirectional request transformation passed its final stage.

Specified by:
apply in interface com.google.common.base.Function<Request,Pair<Request,com.google.common.base.Optional<LinearAcceptor>>>
Specified by:
apply in interface Stage<Request,com.google.common.base.Optional<LinearAcceptor>>
Parameters:
data - data to be transformed.
Returns:
a pair of transformed data and processing continuation; the transformed data is on the left and the processing continuation on the right side of the pair.


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