|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.engine.ResetService
public class ResetService
ServiceLink used to discard all cached data (templates, specifications, et cetera). This is primarily used during development. It could be a weakness of a Tapestry application, making it susceptible to denial of service attacks, which is why it is disabled by default. The link generated by the ResetService redisplays the current page after discarding all data.
Constructor Summary | |
---|---|
ResetService()
|
Method Summary | |
---|---|
ILink |
getLink(boolean post,
Object parameter)
Builds a URL for a service. |
String |
getName()
Returns the name of the service. |
void |
service(IRequestCycle cycle)
Perform the service, interpreting the URL (from the HttpServletRequest ) responding appropriately, and rendering a
result page. |
void |
setEnabled(boolean enabled)
|
void |
setLinkFactory(LinkFactory linkFactory)
|
void |
setRequestCycle(IRequestCycle requestCycle)
|
void |
setResetEventHub(ResetEventHub resetEventHub)
|
void |
setResponseRenderer(ResponseRenderer responseRenderer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResetService()
Method Detail |
---|
public ILink getLink(boolean post, Object parameter)
IEngineService
This method changed incompatibly between release 3.0 and release 4.0.
getLink
in interface IEngineService
post
- if true, then the link will be used for a post (not a get, i.e., for a HTML form);
this may affect what information is encoded into the linkparameter
- An object that provide any additional information needed by the service. Each
service implementation will expect that an object of the proper type be passed in.
In some cases, a simple String will do; in others, a specific object (possibly
implementing an interface) will be required.
HttpServletResponse.encodeURL(java.lang.String)
.public String getName()
IEngineService
getName
in interface IEngineService
public void service(IRequestCycle cycle) throws IOException
IEngineService
HttpServletRequest
) responding appropriately, and rendering a
result page.
service
in interface IEngineService
cycle
- the incoming request
IOException
public void setResponseRenderer(ResponseRenderer responseRenderer)
public void setResetEventHub(ResetEventHub resetEventHub)
public void setEnabled(boolean enabled)
public void setLinkFactory(LinkFactory linkFactory)
public void setRequestCycle(IRequestCycle requestCycle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |