|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.AbstractRequestCycleProcessor
public abstract class AbstractRequestCycleProcessor
Default abstract implementation of IRequestCycleProcessor.
| Constructor Summary | |
|---|---|
AbstractRequestCycleProcessor()
Construct. |
|
| Method Summary | |
|---|---|
IRequestCodingStrategy |
getRequestCodingStrategy()
Gets the object that is responsible for encoding request targets (like url's in links etc) and decoding urls and request parameters etc into RequestParameters objects. |
protected abstract IRequestCodingStrategy |
newRequestCodingStrategy()
Creates a new request coding strategy instance. |
protected Page |
onRuntimeException(Page page,
java.lang.RuntimeException e)
This method is called when a runtime exception is thrown, just before the actual handling of the runtime exception. |
void |
processEvents(RequestCycle requestCycle)
After a page is restored, this method is responsible for calling any event handling code based on the request. |
protected IRequestTarget |
resolveBookmarkablePage(RequestCycle requestCycle,
RequestParameters requestParameters)
Resolves to a bookmarkable page target. |
protected IRequestTarget |
resolveExternalResource(RequestCycle requestCycle)
Resolves to an external resource. |
protected IRequestTarget |
resolveHomePageTarget(RequestCycle requestCycle,
RequestParameters requestParameters)
Resolves to a home page target. |
protected IRequestTarget |
resolveListenerInterfaceTarget(RequestCycle requestCycle,
Page page,
java.lang.String componentPath,
java.lang.String interfaceName,
RequestParameters requestParameters)
Resolves the RequestTarget for the given interface. |
protected IRequestTarget |
resolveRenderedPage(RequestCycle requestCycle,
RequestParameters requestParameters)
Resolves to a page target that was previously rendered. |
protected IRequestTarget |
resolveSharedResource(RequestCycle requestCycle,
RequestParameters requestParameters)
Resolves to a shared resource target. |
void |
respond(RequestCycle requestCycle)
After the target is resolved and the request events are handled, it is time to respond to the request. |
void |
respond(java.lang.RuntimeException e,
RequestCycle requestCycle)
Whenever a unhandled exception is encountered during the processing of a request cycle, this method is called to respond to the request in a proper way. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.wicket.request.IRequestCycleProcessor |
|---|
resolve |
| Constructor Detail |
|---|
public AbstractRequestCycleProcessor()
| Method Detail |
|---|
public IRequestCodingStrategy getRequestCodingStrategy()
IRequestCycleProcessorRequestParameters objects.
getRequestCodingStrategy in interface IRequestCycleProcessorIRequestCycleProcessor.getRequestCodingStrategy()public void processEvents(RequestCycle requestCycle)
IRequestCycleProcessorIRequestCycleProcessor.resolve(RequestCycle, RequestParameters) should return the page that that link
resides on, and this method should call the
ILinkListener interface on that component.
processEvents in interface IRequestCycleProcessorrequestCycle - the current request cycleIRequestCycleProcessor.processEvents(org.apache.wicket.RequestCycle)public void respond(RequestCycle requestCycle)
IRequestCycleProcessor
respond in interface IRequestCycleProcessorrequestCycle - the current request cycleIRequestCycleProcessor.respond(org.apache.wicket.RequestCycle)
public void respond(java.lang.RuntimeException e,
RequestCycle requestCycle)
IRequestCycleProcessor
respond in interface IRequestCycleProcessore - any unhandled exceptionrequestCycle - the current request cycleIRequestCycleProcessor.respond(java.lang.RuntimeException,
org.apache.wicket.RequestCycle)protected abstract IRequestCodingStrategy newRequestCodingStrategy()
getRequestCodingStrategy() is called.
protected Page onRuntimeException(Page page,
java.lang.RuntimeException e)
RequestCycle.onRuntimeException(Page, RuntimeException). Note that if you override
this method RequestCycle.onRuntimeException(Page, RuntimeException) will not be
supported.
page - Any page context where the exception was throwne - The exception
protected IRequestTarget resolveBookmarkablePage(RequestCycle requestCycle,
RequestParameters requestParameters)
requestCycle - the current request cyclerequestParameters - the request parameters object
protected IRequestTarget resolveExternalResource(RequestCycle requestCycle)
requestCycle - The current request cycle
protected IRequestTarget resolveHomePageTarget(RequestCycle requestCycle,
RequestParameters requestParameters)
requestCycle - the current request cycle.requestParameters - the request parameters object
protected IRequestTarget resolveListenerInterfaceTarget(RequestCycle requestCycle,
Page page,
java.lang.String componentPath,
java.lang.String interfaceName,
RequestParameters requestParameters)
requestCycle - The current RequestCycle objectpage - The page object which holds the component for which this interface is called on.componentPath - The component path for looking up the component in the page.interfaceName - The interface to resolve.requestParameters -
protected IRequestTarget resolveRenderedPage(RequestCycle requestCycle,
RequestParameters requestParameters)
requestCycle - the current request cyclerequestParameters - the request parameters object
protected IRequestTarget resolveSharedResource(RequestCycle requestCycle,
RequestParameters requestParameters)
requestCycle - the current request cyclerequestParameters - the request parameters object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||