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

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

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

origin: org.kie.workbench.stunner/kie-wb-common-stunner-backend-common

public String getPathRelativeToApp(final String path) {
  final String wbp = null != path ? (path.trim().length() == 0 || ".".equals(path) ?
      WEBINF_PATH :
      WEBINF_PATH + "/" + path) :
      WEBINF_PATH;
  return RpcContext.getServletRequest()
      .getServletContext()
      .getRealPath(wbp)
      .replaceAll("\\\\",
            "/");
}
origin: kiegroup/appformer

public MessageReader() {
  this(() -> RpcContext.getServletRequest().getLocale());
}
origin: org.overlord.rtgov.ui/rtgov-ui-core

  @AroundInvoke
  public Object bindUserContext(InvocationContext invocationContext) throws Exception {
    HttpServletRequest servletRequest = (HttpServletRequest) getServletRequest();
    IUserContext.Holder.setPrincipal(servletRequest.getUserPrincipal());
    try {
      return invocationContext.proceed();
    } finally {
      IUserContext.Holder.removeSecurityContext();
    }
  }
}
origin: org.kie.workbench.forms/kie-wb-common-forms-adf-engine-backend

public BackendI18nHelper(I18nSettings settings) {
  super(settings);
  bundle = ResourceBundle.getBundle(settings.getBundle(),
                   RpcContext.getServletRequest().getLocale());
}
origin: kiegroup/appformer

public static String getRealPath(final String path) {
  return getRealPath(RpcContext.getServletRequest().getServletContext(),
            path);
}
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.apiRpcContextgetServletRequest

Popular methods of RpcContext

  • getHttpSession
  • getMessage
  • 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

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • findViewById (Activity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Vim plugins
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