org.glassfish.jersey.internal.inject
Class RequestInjectee

java.lang.Object
  extended by org.glassfish.jersey.internal.inject.RequestInjectee
All Implemented Interfaces:
javax.ws.rs.core.Request

public class RequestInjectee
extends Object
implements javax.ws.rs.core.Request

Proxiable wrapper for request scoped Request instance.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com)

Constructor Summary
RequestInjectee()
           
 
Method Summary
 javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions()
           
 javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(Date lastModified)
           
 javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(Date lastModified, javax.ws.rs.core.EntityTag eTag)
           
 javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(javax.ws.rs.core.EntityTag eTag)
           
 String getMethod()
           
 javax.ws.rs.core.Variant selectVariant(List<javax.ws.rs.core.Variant> variants)
           
 void set(javax.ws.rs.core.Request request)
          Set wrapped instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestInjectee

public RequestInjectee()
Method Detail

set

public void set(javax.ws.rs.core.Request request)
Set wrapped instance. Should be invoked on each incoming request, when a new injectee instance is created by HK2.

Parameters:
request - actual request instance.

getMethod

public String getMethod()
Specified by:
getMethod in interface javax.ws.rs.core.Request

selectVariant

public javax.ws.rs.core.Variant selectVariant(List<javax.ws.rs.core.Variant> variants)
                                       throws IllegalArgumentException
Specified by:
selectVariant in interface javax.ws.rs.core.Request
Throws:
IllegalArgumentException

evaluatePreconditions

public javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(javax.ws.rs.core.EntityTag eTag)
Specified by:
evaluatePreconditions in interface javax.ws.rs.core.Request

evaluatePreconditions

public javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(Date lastModified)
Specified by:
evaluatePreconditions in interface javax.ws.rs.core.Request

evaluatePreconditions

public javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(Date lastModified,
                                                                       javax.ws.rs.core.EntityTag eTag)
Specified by:
evaluatePreconditions in interface javax.ws.rs.core.Request

evaluatePreconditions

public javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions()
Specified by:
evaluatePreconditions in interface javax.ws.rs.core.Request


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.