@UsesMappedConfiguration(value=AssetRequestHandler.class) @Marker(value=AssetRequestDispatcher.class) public class AssetDispatcher extends java.lang.Object implements Dispatcher
SymbolConstants.ASSET_PATH_PREFIX
symbol), and delivers the content therein as a bytestream. Also
handles requests that are simply polling for a change to the file (including checking the ETag in the
request against the asset's checksum.Constructor and Description |
---|
AssetDispatcher(java.util.Map<java.lang.String,AssetRequestHandler> configuration,
PathConstructor pathConstructor,
java.lang.String assetPathPrefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
dispatch(Request request,
Response response)
Analyzes the incoming request and performs an appropriate operation for each.
|
public AssetDispatcher(java.util.Map<java.lang.String,AssetRequestHandler> configuration, PathConstructor pathConstructor, @Symbol(value="tapestry.asset-path-prefix") java.lang.String assetPathPrefix)
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.