public class ModuleDispatcher extends java.lang.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,
java.lang.String prefix,
java.lang.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, java.lang.String prefix, @Symbol(value="tapestry.asset-path-prefix") java.lang.String assetPrefix, boolean compress)
public boolean dispatch(Request request, Response response) throws java.io.IOException
Dispatcher
dispatch
in interface Dispatcher
java.io.IOException
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.