Package rife.engine
package rife.engine
Provides classes and interfaces for the web engine.
- Since:
- 1.0
-
ClassDescriptionThis abstract class implements parts of the
Responseinterface to provide behaviour that is specific to RIFE2.A single byte range of aRangerequest header, resolved against the length of the content it applies to.This class provides the context for the current HTTP request.Helper class for building aCookie.Interface describing the functionality of a RIFE2 element of execution.Configures the continuations system for the web engine.Main entry class into the RIFE2 web engine, used both by the servlet engine and the out of container testing API.Describes an htmx client-side navigation together with its context, for the JSON form of theHX-Locationresponse header.Glue interface to help building the pathinfo mapping structureProvides the different pathinfo handling options for a route definition.Micro DSL to describe the format of how a pathinfo should be structure and mapped to parameters.This interface contains all the methods that the web engine needs to be able to correctly handle incoming requests.The collection of HTTP methods as an enum.This interface contains all the methods that the web engine needs to be able to send a response to the client.Interface describing a route that leads to a RIFE2 web executionElement.Provides the routing features of the RIFE2 web engine.TheSameSitepolicies of a cookie, which determine whether a browser will send the cookie along with the requests that originate from another site.Embedded Jetty server that can directly start from a RIFE2 site.AServerSentEventobject describes a single server-sent event that can be sent through anSseConnectionor broadcast to all the connections of anSseBroadcaster.Convenience class that wraps around anHttpSession.The main site of your web application, which is also the top-level router.A cookie as it's kept by aSiteCookieJar, with an absolute expiry so that it can be stored and restored later.Stores the cookies of aSiteCookieJarin a file.Acts as the browser for the cookies of aSiteRunner.Stores the cookies of aSiteCookieJarsomewhere that lasts, so that they survive a restart of your application.A request that your application passes to a site through aSiteRunner, in the same process and without a servlet container.The response of a site to aSiteRequest.Receives the response of aSiteRunnerwhile it's being written.Runs a site inside your own application, in the same process, without a servlet container and without a socket.Request parameters with a special meaning for RIFE2.Manages a collection of detached server-sent events connections and broadcasts events to all of them.AnSseConnectioninstance represents a single server-sent events (SSE) connection to a client.The method of aSseConnectionFilterwill be executed for each of the connections of aSseBroadcaster, so that an operation is limited to the connections that it accepts.The method of aSseErrorListenerwill be executed when an event couldn't be converted or delivered to aSseBroadcaster.Provides a snapshot of the state of the event history of anSseBroadcaster, which is intended to help you tune the history capacity.Embedded Tomcat server that can directly start from a RIFE2 site.AnUploadedFileinstance is created by the web engine when files are uploaded through a multipart request.UrlBuilderhelps creating valid URLs that automatically adapt based on the current executionContextand targetRoute.The segments that are generated by the URL builder.