|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.services.assets.ClasspathAssetRequestHandler
public class ClasspathAssetRequestHandler
A handler for asset requests for classpath assets (within a specific folder).
Each mapping of the ClasspathAssetAliasManager gets one of these.
| Constructor Summary | |
|---|---|
ClasspathAssetRequestHandler(ResourceStreamer streamer,
AssetResourceLocator assetResourceLocator,
java.lang.String baseFolder)
|
|
| Method Summary | |
|---|---|
boolean |
handleAssetRequest(Request request,
Response response,
java.lang.String extraPath)
Given a request targeted (via the handler id) to the specific handler, process the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClasspathAssetRequestHandler(ResourceStreamer streamer,
AssetResourceLocator assetResourceLocator,
java.lang.String baseFolder)
| Method Detail |
|---|
public boolean handleAssetRequest(Request request,
Response response,
java.lang.String extraPath)
throws java.io.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.
handleAssetRequest in interface AssetRequestHandlerrequest - incoming asset requestresponse - used to send a response to clientextraPath - additional path to identify the specific asset
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||