Uses of Interface
org.jgrapes.http.ResponseCreationSupport.MaxAgeCalculator
Packages that use ResponseCreationSupport.MaxAgeCalculator
Package
Description
Provides components for building a HTTP server based on the
core and IO components.
Provides a base component for generating template based responses
to HTTP requests.
-
Uses of ResponseCreationSupport.MaxAgeCalculator in org.jgrapes.http
Classes in org.jgrapes.http that implement ResponseCreationSupport.MaxAgeCalculatorModifier and TypeClassDescriptionstatic classDefaultMaxAgeCalculator provides an implementation that tries to guess a good max age value by looking at the path of the requested resource.Fields in org.jgrapes.http declared as ResponseCreationSupport.MaxAgeCalculatorModifier and TypeFieldDescriptionstatic final ResponseCreationSupport.MaxAgeCalculatorResponseCreationSupport.DEFAULT_MAX_AGE_CALCULATORA default implementation for the max-age calculator.Methods in org.jgrapes.http that return ResponseCreationSupport.MaxAgeCalculatorMethods in org.jgrapes.http with parameters of type ResponseCreationSupport.MaxAgeCalculatorModifier and TypeMethodDescriptionstatic booleanResponseCreationSupport.sendStaticContent(HttpRequest request, IOSubchannel channel, Function<String, URL> resolver, ResponseCreationSupport.MaxAgeCalculator maxAgeCalculator) Creates and sends a response with static content.static booleanResponseCreationSupport.sendStaticContent(Request.In event, IOSubchannel channel, Function<String, URL> resolver, ResponseCreationSupport.MaxAgeCalculator maxAgeCalculator) Shorthand for invokingResponseCreationSupport.sendStaticContent(HttpRequest, IOSubchannel, Function, MaxAgeCalculator)with theHttpRequestfrom the event.voidStaticContentDispatcher.setMaxAgeCalculator(ResponseCreationSupport.MaxAgeCalculator maxAgeCalculator) Sets theResponseCreationSupport.MaxAgeCalculatorfor generating theCache-Control(max-age) header of the response. -
Uses of ResponseCreationSupport.MaxAgeCalculator in org.jgrapes.http.freemarker
Methods in org.jgrapes.http.freemarker that return ResponseCreationSupport.MaxAgeCalculatorMethods in org.jgrapes.http.freemarker with parameters of type ResponseCreationSupport.MaxAgeCalculatorModifier and TypeMethodDescriptionvoidFreeMarkerRequestHandler.setMaxAgeCalculator(ResponseCreationSupport.MaxAgeCalculator maxAgeCalculator) Sets theResponseCreationSupport.MaxAgeCalculatorfor generating theCache-Control(max-age) header of the response.