|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.engine.RestartService
Restarts the Tapestry application. This is normally reserved for dealing with catastrophic
failures of the application. Discards the HttpSession
, if any, and
redirects to the Tapestry application servlet URL (invoking the HomeService
).
Constructor Summary | |
RestartService()
|
Method Summary | |
ILink |
getLink(IRequestCycle cycle,
java.lang.Object parameter)
Builds a URL for a service. |
java.lang.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 |
setBuilder(AbsoluteURLBuilder builder)
|
void |
setLinkFactory(LinkFactory linkFactory)
|
void |
setLog(org.apache.commons.logging.Log log)
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
|
void |
setResponse(javax.servlet.http.HttpServletResponse response)
|
void |
setServletPath(java.lang.String servletPath)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RestartService()
Method Detail |
public ILink getLink(IRequestCycle cycle, java.lang.Object parameter)
IEngineService
This method changed incompatibly between release 3.0 and release 4.0.
getLink
in interface IEngineService
cycle
- Defines the request cycle being processed.parameter
- 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 void service(IRequestCycle cycle) throws java.io.IOException
IEngineService
HttpServletRequest
) responding appropriately, and rendering a
result page.
service
in interface IEngineService
cycle
- the incoming request
java.io.IOException
org.apache.tapestry.IEngine#service(org.apache.tapestry.request.RequestContext)
public java.lang.String getName()
IEngineService
getName
in interface IEngineService
public void setLog(org.apache.commons.logging.Log log)
public void setRequest(javax.servlet.http.HttpServletRequest request)
public void setBuilder(AbsoluteURLBuilder builder)
public void setResponse(javax.servlet.http.HttpServletResponse response)
public void setLinkFactory(LinkFactory linkFactory)
public void setServletPath(java.lang.String servletPath)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |