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) |
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
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.