Tabnine Logo
RpcContext.getMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessage
method
in
org.jboss.errai.bus.server.api.RpcContext

Best Java code snippets using org.jboss.errai.bus.server.api.RpcContext.getMessage (Showing top 9 results out of 315)

origin: org.jboss.errai/errai-bus

public ServerCallableFuture() {
 incomingMessage = RpcContext.getMessage();
}
origin: org.jboss.errai/errai-bus

/**
 * @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");
}
origin: org.jboss.errai/errai-bus

 /**
  * @return the servlet request instance associated with this {@link Thread}
  */
 public static ServletRequest getServletRequest() {
  return getMessage().getResource(HttpServletRequest.class, HttpServletRequest.class.getName());
 }
}
origin: errai/errai

public ServerCallableFuture() {
 incomingMessage = RpcContext.getMessage();
}
origin: errai/errai

/**
 * @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");
}
origin: errai/errai

 /**
  * @return the servlet request instance associated with this {@link Thread}
  */
 public static ServletRequest getServletRequest() {
  return getMessage().getResource(HttpServletRequest.class, HttpServletRequest.class.getName());
 }
}
origin: org.uberfire/uberfire-server

  private String getSessionId() {
    return (getMessage() != null && getQueueSession() != null ? getQueueSession().getSessionId() : null);
  }
}
origin: kiegroup/appformer

  private String getSessionId() {
    return (getMessage() != null && getQueueSession() != null ? getQueueSession().getSessionId() : null);
  }
}
origin: errai/errai

@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();
 }
}
org.jboss.errai.bus.server.apiRpcContextgetMessage

Popular methods of RpcContext

  • getServletRequest
  • getHttpSession
  • set
    Reads resources from the provided Message and stores them in ThreadLocals.
  • getQueueSession
  • remove
    Removes the resources associated with the current thread.

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Menu (java.awt)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Notification (javax.management)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now