skinny

filter

package filter

Visibility
  1. Public
  2. All

Type Members

  1. trait ErrorPageFilter extends SkinnyRenderingFilter

    Shows error page when unexpected exceptions are thrown from controllers.

  2. trait SkinnyFilter extends controller.SkinnyControllerBase with SkinnyFilterActivation

    Skinny Filter.

    Skinny Filter.

    For example:

    class BooksController extends SkinnyController
      with TxPerRequestFiler
      with SkinnyFilterActivation {
    
      // within a transaction
      def changeTitle = {
        if (...) {
          throw new UnexpectedErrorException
          // rollback
        } else {
          redirect(s"/books/${id}")
          // commit
        }
      }
    }

    If you use Scatatra's filter - before/after, be careful. It's pretty tricky. Because Scalatra's filters would be applied for all the controllers difined below in ScalatraBootstrap. Just using beforeAction/afterAction is highly recommended.

  3. trait SkinnyFilterActivation extends AnyRef

    Activates skinny filters.

  4. trait SkinnyRenderingFilter extends SkinnyFilter with SkinnyWebPageControllerFeatures

    Skinny Rendering Filter.

    Skinny Rendering Filter.

    If you use Scatatra's filter (before/after not beforeAction/afterAction), be careful. It's pretty tricky. Scalatra's filters would be applied for all the controllers defined below in ScalatraBootstrap.

  5. trait SkinnySessionFilter extends SkinnyFilter

    Enables replacing Servlet session with Skinny's session shared among several Servlet apps.

    Enables replacing Servlet session with Skinny's session shared among several Servlet apps.

    Mounting skinny.session.SkinnySessionInitializer on the top of ScalatraBootstrap.scala is required.

    ctx.mount(classOf[SkinnySessionInitializer], "/\*")
  6. trait TxPerRequestFilter extends SkinnyFilter with logging.Logging

    A filter which enables controller wired with a single transactional DB session.

Value Members

  1. object SkinnySessionFilter

Ungrouped