This event is effectively a “transformed”
simplifies handling of such an event by web console components, because
they can simply set a result of type
thus need no knowledge about generating all the events required to
properly respond to a
The complete sequence of events is shown in the diagram.
Of course, due to internal buffering, the “Response Header” data and the “Response body” data may collapse in a single message that is sent to the browser (in case of a small resource).
If a value is provided by
and the resource has not changed since the given instant,
a resource provider may set
result. This information will be forwarded to the browser.
For a result of type
ResourceByUrl, the check
for modification will be made automatically, using information
derived from the
ResourceRequest events use usually only
the information provided by
resourceUri(). The other
items are needed by the handler of the
event (the web console) to generate the response for the
Method SummaryModifier and TypeMethodDescription
org.jdrupes.httpcodec.protocols.http.HttpRequestReturns the “raw” request as provided by the HTTP decoder.If not null, this value may be used to decide if the resource must be refreshed.Returns the render support.
session()Returns the (browser) session.
Methods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo, toString
Methods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
(URI resourceUri, Instant ifModifiedSince, org.jdrupes.httpcodec.protocols.http.HttpRequest httpRequest, IOSubchannel httpChannel, Session session, RenderSupport renderSupport)
resourceUri- the requested resource
httpRequest- the original HTTP request
httpChannel- the channel that the HTTP request was received on
renderSupport- the render support
- the resourceUri
ifModifiedSinceIf not null, this value may be used to decide if the resource must be refreshed.
- the instant
httpRequestpublic org.jdrupes.httpcodec.protocols.http.HttpRequest httpRequest()Returns the “raw” request as provided by the HTTP decoder.
- the request
- the httpChannel
renderSupportReturns the render support.
- the render support
sessionReturns the (browser) session.
- the session