org.glassfish.jersey.process.internal
Interface RequestProcessor

All Superinterfaces:
com.google.common.base.Function<javax.ws.rs.core.Request,Pair<javax.ws.rs.core.Request,com.google.common.base.Optional<Inflector<javax.ws.rs.core.Request,javax.ws.rs.core.Response>>>>, Stage<javax.ws.rs.core.Request,com.google.common.base.Optional<Inflector<javax.ws.rs.core.Request,javax.ws.rs.core.Response>>>
All Known Implementing Classes:
HierarchicalRequestProcessor, LinearRequestProcessor

public interface RequestProcessor
extends Stage<javax.ws.rs.core.Request,com.google.common.base.Optional<Inflector<javax.ws.rs.core.Request,javax.ws.rs.core.Response>>>

Applies all request transformations and returns a continuation with the transformed request on the left side and an (optional) request-to-response inflector on the right side.

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage
Stage.Root
 
Method Summary
 Pair<javax.ws.rs.core.Request,com.google.common.base.Optional<Inflector<javax.ws.rs.core.Request,javax.ws.rs.core.Response>>> apply(javax.ws.rs.core.Request request)
          Traverse through the nested request stages and apply request transformations until a terminal stage providing a request-to-response inflector is reached.
 
Methods inherited from interface com.google.common.base.Function
equals
 

Method Detail

apply

Pair<javax.ws.rs.core.Request,com.google.common.base.Optional<Inflector<javax.ws.rs.core.Request,javax.ws.rs.core.Response>>> apply(javax.ws.rs.core.Request request)
Traverse through the nested request stages and apply request transformations until a terminal stage providing a request-to-response inflector is reached. If the terminal stage does not provide an inflector, the inflector returned on the right side of the continuation will be absent.

Specified by:
apply in interface com.google.common.base.Function<javax.ws.rs.core.Request,Pair<javax.ws.rs.core.Request,com.google.common.base.Optional<Inflector<javax.ws.rs.core.Request,javax.ws.rs.core.Response>>>>
Specified by:
apply in interface Stage<javax.ws.rs.core.Request,com.google.common.base.Optional<Inflector<javax.ws.rs.core.Request,javax.ws.rs.core.Response>>>
Parameters:
request - request data to be transformed
Returns:
continuation with the transformed request on the left side and the (optional) request-to-response inflector on the right side.


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