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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
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
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JOptionPane (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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