T
- external request context typepublic interface ExternalRequestScope<T> extends AutoCloseable
An implementation must be registered via META-INF/services mechanism. Only one implementation will be utilized during runtime. If more than one implementation is registered, no one will get used and an error message will be logged out.
Modifier and Type | Method and Description |
---|---|
void |
close()
Finish the actual request.
|
ExternalRequestContext<T> |
open(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Invoked when a new request gets started.
|
void |
resume(ExternalRequestContext<T> c,
org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Resume request associated with provided context.
|
void |
suspend(ExternalRequestContext<T> c,
org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Suspend request associated with provided context.
|
ExternalRequestContext<T> open(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
injectionManager
- DI injection managervoid suspend(ExternalRequestContext<T> c, org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
c
- external request contextinjectionManager
- DI injection managervoid resume(ExternalRequestContext<T> c, org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
c
- external request contextinjectionManager
- DI injection managervoid close()
close
in interface AutoCloseable
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.