congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RSACUtils
Code IndexAdd Tabnine to your IDE (free)

How to use
RSACUtils
in
uk.org.ponder.rsac.servlet

Best Java code snippets using uk.org.ponder.rsac.servlet.RSACUtils (Showing top 8 results out of 315)

origin: uk.org.ponder.rsf/rsf-core-servletutil

public void startRequest(HttpServletRequest request, HttpServletResponse response) {
 RSACUtils.startServletRequest(request, response, rsacbl, RSACUtils.HTTP_SERVLET_FACTORY);    
}
origin: uk.org.ponder.rsf/rsf-core-servletutil

public static void startServletRequest(HttpServletRequest request,
  HttpServletResponse response, RSACBeanLocator rsacbl,
  String factorybeanname) {
 // Logger.log.info("Got rsacbg " + rsacbl);
 if (!rsacbl.isStarted()) {
  rsacbl.startRequest();
 }
 WriteableBeanLocator locator = rsacbl.getBeanLocator();
 HttpServletFactory factory = (HttpServletFactory) 
  locator.locateBean(factorybeanname);
 factory.setHttpServletRequest(request);
 factory.setHttpServletResponse(response);
 locator.set(factorybeanname, factory);
 // notify the "seed list" of the change.
 setRequestApplicationContext(request, locator);
}
origin: uk.org.ponder.rsf/rsf-core-servletutil

public void doFilter(ServletRequest request, ServletResponse response,
  FilterChain chain) {
 try {
  RSACUtils.startServletRequest((HttpServletRequest)request, (HttpServletResponse) response, 
    rsacbg, RSACUtils.HTTP_SERVLET_FACTORY);
  chain.doFilter(request, response);
 }
 catch (Exception e) {
  // Catch and log this here because Tomcat's stack rendering is non-standard and crummy.
  Logger.log.error("Error servicing RSAC request: ", e);
 }
 finally {
  rsacbg.endRequest();
 }
}
origin: sakaiproject/sakai

RSACUtils.startServletRequest(req, res, rsacbl, RSACUtils.HTTP_SERVLET_FACTORY);
origin: uk.org.ponder.rsf/rsf-core

 protected void service(HttpServletRequest request,
   HttpServletResponse response) {
  RSACUtils.startServletRequest(request, response, rsacbeanlocator,
    RSACUtils.HTTP_SERVLET_FACTORY);
  try {
   rsacbeanlocator.getBeanLocator().locateBean("rootHandlerBean");
  }
  catch (Throwable t) {
   // Catch and log this here because Tomcat's stack rendering is
   // non-standard and crummy.
   Logger.log.error("Error servicing RSAC request: ", t);
   if (t instanceof Error) {
    throw ((Error) t);
   }
  }
  finally {
   rsacbeanlocator.endRequest();
  }
 }
}
origin: uk.org.ponder.sakairsf/sakairsf

RSACUtils.startServletRequest(req, res, 
  rsacbl, RSACUtils.HTTP_SERVLET_FACTORY);
origin: sakaiproject/sakai

public void handleAccess(HttpServletRequest req, HttpServletResponse res, EntityReference reference,
    WBLAcceptor acceptor) {
  try {
    rsacbl.startRequest();
    // A request bean locator just good for this request.
    WriteableBeanLocator rbl = rsacbl.getBeanLocator();
    // inchuck entityReference
    rbl.set("sakai-EntityReference", reference.toString());
    if (acceptor != null) {
      acceptor.acceptWBL(rbl);
    }
    RSACUtils.startServletRequest(wrapRequest(req), res, rsacbl, RSACUtils.HTTP_SERVLET_FACTORY);
    // pass the request to RSF.
    rbl.locateBean("rootHandlerBean");
  } catch (Exception t) {
    // Access servlet performs no useful logging, do it here.
    Logger.log.error("Error handling access request", t);
    Throwable unwrapped = UniversalRuntimeException.unwrapException(t);
    if (unwrapped instanceof RuntimeException) {
      throw ((RuntimeException) unwrapped);
    } else
      throw UniversalRuntimeException.accumulate(unwrapped, "Error handling access request");
  } finally {
    rsacbl.endRequest();
  }
}
origin: uk.org.ponder.sakairsf/sakairsf

public void handleAccess(HttpServletRequest req, HttpServletResponse res,
    EntityReference reference, WBLAcceptor acceptor) {
  try {
    rsacbl.startRequest();
    // A request bean locator just good for this request.
    WriteableBeanLocator rbl = rsacbl.getBeanLocator();
    // inchuck entityReference
    rbl.set("sakai-EntityReference", reference.toString());
    if (acceptor != null) {
      acceptor.acceptWBL(rbl);
    }
    RSACUtils.startServletRequest(wrapRequest(req), res, rsacbl,
        RSACUtils.HTTP_SERVLET_FACTORY);
    // pass the request to RSF.
    rbl.locateBean("rootHandlerBean");
  }
  catch (Exception t) {
    // Access servlet performs no useful logging, do it here.
    Logger.log.error("Error handling access request", t);
    Throwable unwrapped = UniversalRuntimeException.unwrapException(t);
    if (unwrapped instanceof RuntimeException) {
      throw ((RuntimeException) unwrapped);
    }
    else 
      throw UniversalRuntimeException.accumulate(unwrapped, "Error handling access request");
  }
  finally {
    rsacbl.endRequest();
  }
}
uk.org.ponder.rsac.servletRSACUtils

Most used methods

  • startServletRequest
  • setRequestApplicationContext

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Notification (javax.management)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • CodeWhisperer 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