Uses of Class
org.jgrapes.http.events.Request.In
Package
Description
Provides components for building a HTTP server based on the
core and IO components.
Provides the events handled by the server components.
Provides a base component for generating template based responses
to HTTP requests.
-
Uses of Request.In in org.jgrapes.http
Modifier and TypeMethodDescriptionvoid
LanguageSelector.onRequest
(Request.In event) Associates the event with aLanguageSelector.Selection
object usingSelection.class
as association identifier.void
SessionManager.onRequest
(Request.In event) Associates the event with aSession
object usingSession.class
as association identifier.static boolean
ResponseCreationSupport.sendStaticContent
(Request.In event, IOSubchannel channel, Function<String, URL> resolver, ResponseCreationSupport.MaxAgeCalculator maxAgeCalculator) Shorthand for invokingResponseCreationSupport.sendStaticContent(HttpRequest, IOSubchannel, Function, MaxAgeCalculator)
with theHttpRequest
from the event. -
Uses of Request.In in org.jgrapes.http.events
Modifier and TypeClassDescriptionstatic class
Represents a HTTP CONNECT request.static class
The Class Delete.static class
Represents a HTTP GET request.static class
Represents a HTTP HEAD request.static class
Represents a HTTP OPTIONS request.static class
Represents a HTTP POST request.static class
Represents a HTTP PUT request.static class
Represents a HTTP TRACE request.Modifier and TypeMethodDescriptionstatic Request.In
Request.In.fromHttpRequest
(HttpRequest request, boolean secure, int matchLevels) Creates the appropriate derived request event type from a givenHttpRequest
.ProtocolSwitchAccepted.requestEvent()
Returns the original request.ModifierConstructorDescriptionCompleted
(Request.In monitoredEvent, Channel... channels) Instantiates a new event.ProtocolSwitchAccepted
(Request.In request, String protocol) Creates a new event. -
Uses of Request.In in org.jgrapes.http.freemarker
Modifier and TypeMethodDescriptionprotected void
FreeMarkerRequestHandler.doRespond
(Request.In event, IOSubchannel channel) Removes the prefix specified in the constructor from the path in the request.protected boolean
FreeMarkerRequestHandler.sendProcessedTemplate
(Request.In event, IOSubchannel channel, freemarker.template.Template tpl) Render a response using the given template.protected boolean
FreeMarkerRequestHandler.sendProcessedTemplate
(Request.In event, IOSubchannel channel, String path) Render a response using the template obtained from the config withConfiguration.getTemplate(String)
and the given path.