Java Code Examples for io.undertow.servlet.handlers.ServletRequestContext#clearCurrentServletAttachments()
The following examples show how to use
io.undertow.servlet.handlers.ServletRequestContext#clearCurrentServletAttachments() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SecurityActions.java From quarkus-http with Apache License 2.0 | 5 votes |
static void clearCurrentServletAttachments() { if (System.getSecurityManager() == null) { ServletRequestContext.clearCurrentServletAttachments(); } else { AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override public Object run() { ServletRequestContext.clearCurrentServletAttachments(); return null; } }); } }
Example 2
Source File: SecurityActions.java From quarkus-http with Apache License 2.0 | 5 votes |
static void clearCurrentServletAttachments() { if (System.getSecurityManager() == null) { ServletRequestContext.clearCurrentServletAttachments(); } else { AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override public Object run() { ServletRequestContext.clearCurrentServletAttachments(); return null; } }); } }
Example 3
Source File: ServletThreadContextProvider.java From quarkus with Apache License 2.0 | 5 votes |
private ServletRequestContext restore(ServletRequestContext context) { ServletRequestContext currentContext = ServletRequestContext.current(); if (context == null) ServletRequestContext.clearCurrentServletAttachments(); else ServletRequestContext.setCurrentRequestContext(context); return currentContext; }
Example 4
Source File: SecurityActions.java From lams with GNU General Public License v2.0 | 5 votes |
static void clearCurrentServletAttachments() { if (System.getSecurityManager() == null) { ServletRequestContext.clearCurrentServletAttachments(); } else { AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override public Object run() { ServletRequestContext.clearCurrentServletAttachments(); return null; } }); } }
Example 5
Source File: SecurityActions.java From lams with GNU General Public License v2.0 | 5 votes |
static void clearCurrentServletAttachments() { if (System.getSecurityManager() == null) { ServletRequestContext.clearCurrentServletAttachments(); } else { AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override public Object run() { ServletRequestContext.clearCurrentServletAttachments(); return null; } }); } }