|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ResourceService
Provides a static resource service interface.
ClickResourceService.
However you can instruct Click to use a different implementation by adding
the following element to your click.xml configuration file.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<click-app charset="UTF-8">
<pages package="com.mycorp.page"/>
<resource-service classname="com.mycorp.service.DynamicResourceService">
</click-app>
| Method Summary | |
|---|---|
boolean |
isResourceRequest(HttpServletRequest request)
Return true if the request is for a static resource. |
void |
onDestroy()
Destroy the ResourceService. |
void |
onInit(ServletContext servletContext)
Initialize the ResourceService with the given application configuration service instance. |
void |
renderResource(HttpServletRequest request,
HttpServletResponse response)
Render the resource request to the given servlet resource response. |
| Method Detail |
|---|
void onInit(ServletContext servletContext)
throws IOException
servletContext - the application servlet context
IOException - if an IO error occurs initializing the servicevoid onDestroy()
boolean isResourceRequest(HttpServletRequest request)
request - the servlet request
void renderResource(HttpServletRequest request,
HttpServletResponse response)
throws IOException
request - the servlet resource requestresponse - the servlet response
IOException - if an IO error occurs rendering the resource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||