Package com.helger.web.scope.request
Class RequestScopeInitializer
- java.lang.Object
-
- com.helger.web.scope.request.RequestScopeInitializer
-
- All Implemented Interfaces:
AutoCloseable
@NotThreadSafe public final class RequestScopeInitializer extends Object implements AutoCloseable
Internal class from scope aware filter and servlets.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Destroy the current request scope if it was initialized here.static RequestScopeInitializercreate(jakarta.servlet.http.HttpServletRequest aHttpRequest, jakarta.servlet.http.HttpServletResponse aHttpResponse, BiFunction<? super jakarta.servlet.http.HttpServletRequest,? super jakarta.servlet.http.HttpServletResponse,IRequestWebScope> aFactory)static RequestScopeInitializercreateMultipart(jakarta.servlet.http.HttpServletRequest aHttpRequest, jakarta.servlet.http.HttpServletResponse aHttpResponse)IRequestWebScopegetRequestScope()voidinternalSetDontDestroyRequestScope()booleanisNew()
-
-
-
Method Detail
-
getRequestScope
@Nonnull public IRequestWebScope getRequestScope()
- Returns:
- The request web scope to be used.
-
isNew
public boolean isNew()
-
internalSetDontDestroyRequestScope
public void internalSetDontDestroyRequestScope()
-
close
public void close()
Destroy the current request scope if it was initialized here.- Specified by:
closein interfaceAutoCloseable
-
createMultipart
@Nonnull public static RequestScopeInitializer createMultipart(@Nonnull jakarta.servlet.http.HttpServletRequest aHttpRequest, @Nonnull jakarta.servlet.http.HttpServletResponse aHttpResponse)
-
create
@Nonnull public static RequestScopeInitializer create(@Nonnull jakarta.servlet.http.HttpServletRequest aHttpRequest, @Nonnull jakarta.servlet.http.HttpServletResponse aHttpResponse, @Nonnull BiFunction<? super jakarta.servlet.http.HttpServletRequest,? super jakarta.servlet.http.HttpServletResponse,IRequestWebScope> aFactory)
-
-