@ApplicationScoped public class WeldRequestScope extends Object implements ExternalRequestScope<Map<String,Object>>
Constructor and Description |
---|
WeldRequestScope() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Finish the actual request.
|
ExternalRequestContext<Map<String,Object>> |
open()
Invoked when a new request gets started.
|
void |
resume(ExternalRequestContext<Map<String,Object>> ctx)
Resume request associated with provided context.
|
void |
suspend(ExternalRequestContext<Map<String,Object>> ctx)
Suspend request associated with provided context.
|
public ExternalRequestContext<Map<String,Object>> open()
ExternalRequestScope
open
in interface ExternalRequestScope<Map<String,Object>>
public void resume(ExternalRequestContext<Map<String,Object>> ctx)
ExternalRequestScope
resume
in interface ExternalRequestScope<Map<String,Object>>
ctx
- external request contextpublic void suspend(ExternalRequestContext<Map<String,Object>> ctx)
ExternalRequestScope
suspend
in interface ExternalRequestScope<Map<String,Object>>
ctx
- external request contextpublic void close()
ExternalRequestScope
close
in interface AutoCloseable
close
in interface ExternalRequestScope<Map<String,Object>>
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.