public class StackAssetRequestHandler extends Object implements AssetRequestHandler
| Constructor and Description |
|---|
StackAssetRequestHandler(org.slf4j.Logger logger,
LocalizationSetter localizationSetter,
ResourceStreamer resourceStreamer,
OperationTracker tracker,
JavaScriptStackAssembler javaScriptStackAssembler,
JavaScriptStackSource stackSource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleAssetRequest(Request request,
Response response,
String extraPath)
Given a request targeted (via the handler id) to the specific handler, process the request.
|
public StackAssetRequestHandler(org.slf4j.Logger logger, LocalizationSetter localizationSetter, ResourceStreamer resourceStreamer, OperationTracker tracker, JavaScriptStackAssembler javaScriptStackAssembler, JavaScriptStackSource stackSource)
public boolean handleAssetRequest(Request request, Response response, String extraPath) throws IOException
AssetRequestHandlerResponse.getOutputStream(String)) or an error response
(via Response.sendError(int, String)). It is the handler's responsibility to allow
for client-side caching (possibly sending an HttpServletResponse.SC_NOT_MODIFIED response).
The handler should return true if it provided a response. If the handler returns false, this indicates that the
extra path did not identify a known asset (virtual or otherwise) and the AssetDispatcher service should send a
HttpServletResponse.SC_NOT_FOUND response.
Starting in Tapestry 5.4, the handler is informed by the AssetRequestDispatcher
whether or not the content should be compressed (this is determined based on information in the URL).handleAssetRequest in interface AssetRequestHandlerrequest - incoming asset requestresponse - used to send a response to clientextraPath - additional path to identify the specific assetIOException5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.