public ServerCallableFuture() { incomingMessage = RpcContext.getMessage(); }
/** * @return the QueueSession associated with this {@link Thread} */ public static QueueSession getQueueSession() { final Message m = getMessage(); if (m == null) { return null; } return m.getResource(QueueSession.class, "Session"); }
/** * @return the servlet request instance associated with this {@link Thread} */ public static ServletRequest getServletRequest() { return getMessage().getResource(HttpServletRequest.class, HttpServletRequest.class.getName()); } }
public ServerCallableFuture() { incomingMessage = RpcContext.getMessage(); }
/** * @return the QueueSession associated with this {@link Thread} */ public static QueueSession getQueueSession() { final Message m = getMessage(); if (m == null) { return null; } return m.getResource(QueueSession.class, "Session"); }
/** * @return the servlet request instance associated with this {@link Thread} */ public static ServletRequest getServletRequest() { return getMessage().getResource(HttpServletRequest.class, HttpServletRequest.class.getName()); } }
private String getSessionId() { return (getMessage() != null && getQueueSession() != null ? getQueueSession().getSessionId() : null); } }
private String getSessionId() { return (getMessage() != null && getQueueSession() != null ? getQueueSession().getSessionId() : null); } }
@Override public void logout() { if (keycloakIsLoggedIn()) { keycloakLogout(); try { if (RpcContext.getMessage() != null) ((HttpServletRequest) RpcContext.getServletRequest()).logout(); } catch (ServletException e) { throw new AuthenticationException("An error occurred while attempting to log out of Keycloak."); } } else if (wrappedAuthService.isLoggedIn()) { wrappedAuthService.logout(); } }