Package rife.engine

Interface Element

All Known Implementing Classes:
Authenticated, Defer, FeedProvider, Identified, Login, Logout, PrintTemplate, ServeContent, Uncached
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Element
Interface describing the functionality of a RIFE2 element of execution.

Elements can be created as lambda expression instances for concise definition, or as child classes which provides much advanced functionalities and reuse.

Lambda expression instances will use RouteInstance routes and element classes will use RouteClass routes.

Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Process the provided Context with this element.
  • Method Details

    • process

      void process(Context c) throws Exception
      Process the provided Context with this element.
      Parameters:
      c - the provided request/response context
      Throws:
      Exception - when an error occurs