org.glassfish.examples.http
Class RequestContext
java.lang.Object
org.glassfish.examples.http.RequestContext
- All Implemented Interfaces:
- Context<RequestScope>
@Singleton
public class RequestContext
- extends Object
- implements Context<RequestScope>
This is the request scope context. It houses all request scope
objects. This is a proxiable scope, so care must be taken that
all objects from this scope are proxiable
- Author:
- jwells
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestContext
public RequestContext()
startRequest
public void startRequest()
- Starts a request
stopRequest
public void stopRequest()
- Stops a request (including properly disposing all the previous request objects)
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScope in interface Context<RequestScope>
findOrCreate
public <U> U findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root)
- Specified by:
findOrCreate in interface Context<RequestScope>
find
public <U> U find(ActiveDescriptor<U> descriptor)
- Specified by:
find in interface Context<RequestScope>
isActive
public boolean isActive()
- Specified by:
isActive in interface Context<RequestScope>
Copyright © 2012 Oracle Corporation. All Rights Reserved.