public class ModuleDispatcher extends Object implements Dispatcher
AssetDispatcher
with key "modules". It interprets the extra path as a module name,
and searches for the corresponding JavaScript module. Unlike normal assets, modules do not include any kind of checksum
in the URL, and do not set a far-future expires header.ModuleManager
Constructor and Description |
---|
ModuleDispatcher(ModuleManager moduleManager,
ResourceStreamer streamer,
OperationTracker tracker,
PathConstructor pathConstructor,
JavaScriptStackSource javaScriptStackSource,
JavaScriptStackPathConstructor javaScriptStackPathConstructor,
LocalizationSetter localizationSetter,
String prefix,
String assetPrefix,
boolean compress) |
Modifier and Type | Method and Description |
---|---|
boolean |
dispatch(Request request,
Response response)
Analyzes the incoming request and performs an appropriate operation for each.
|
public ModuleDispatcher(ModuleManager moduleManager, ResourceStreamer streamer, OperationTracker tracker, PathConstructor pathConstructor, JavaScriptStackSource javaScriptStackSource, JavaScriptStackPathConstructor javaScriptStackPathConstructor, LocalizationSetter localizationSetter, String prefix, @Symbol(value="tapestry.asset-path-prefix") String assetPrefix, boolean compress)
public boolean dispatch(Request request, Response response) throws IOException
Dispatcher
dispatch
in interface Dispatcher
IOException
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.