@NotThreadSafe public final class RequestScopeInitializer extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Destroy the current request scope if it was initialized here.
|
static RequestScopeInitializer |
create(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
BiFunction<? super javax.servlet.http.HttpServletRequest,? super javax.servlet.http.HttpServletResponse,IRequestWebScope> aFactory) |
static RequestScopeInitializer |
createMultipart(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse) |
IRequestWebScope |
getRequestScope() |
void |
internalSetDontDestroyRequestScope() |
boolean |
isNew() |
@Nonnull public IRequestWebScope getRequestScope()
public boolean isNew()
public void internalSetDontDestroyRequestScope()
public void close()
close in interface AutoCloseable@Nonnull public static RequestScopeInitializer createMultipart(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse)
@Nonnull public static RequestScopeInitializer create(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull BiFunction<? super javax.servlet.http.HttpServletRequest,? super javax.servlet.http.HttpServletResponse,IRequestWebScope> aFactory)
Copyright © 2014–2019 Philip Helger. All rights reserved.