wicket
Interface IRequestTarget

All Known Subinterfaces:
IBookmarkablePageRequestTarget, IComponentRequestTarget, IListenerInterfaceRequestTarget, IPageRequestTarget, ISharedResourceRequestTarget
All Known Implementing Classes:
AbstractListenerInterfaceRequestTarget, AjaxRequestTarget, BehaviorRequestTarget, BookmarkablePageRequestTarget, ComponentRequestTarget, ComponentResourceRequestTarget, EmptyRequestTarget, ExpiredPageClassRequestTarget, ListenerInterfaceRequestTarget, PageRequestTarget, RedirectPageRequestTarget, RedirectRequestTarget, ResourceStreamRequestTarget, SharedResourceRequestTarget, StringRequestTarget, WebErrorCodeResponseTarget, WebExternalResourceRequestTarget

public interface IRequestTarget

A request target is the base entity that is the subject of a request. Different types of request have different request targets. For instance a request for a bookmarkable page differs from a request for a link on a previously rendered page, which in turn differs from a request for a shared resource.

It is very important (for mounting) that implementations implement Object.equals(java.lang.Object) and Object.hashCode() in a consistent way.

Typically, implementations of IRequestTarget are not meant to be used more than once.

Author:
Eelco Hillenius

Method Summary
 void detach(RequestCycle requestCycle)
          This method is alled on the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done.
 java.lang.Object getLock(RequestCycle requestCycle)
          Gets the lock to be used for synchronization.
 void respond(RequestCycle requestCycle)
          Generates a response.
 

Method Detail

respond

void respond(RequestCycle requestCycle)
Generates a response.

Parameters:
requestCycle - the current request cycle

detach

void detach(RequestCycle requestCycle)
This method is alled on the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done.

Parameters:
requestCycle - the current request cycle

getLock

java.lang.Object getLock(RequestCycle requestCycle)
Gets the lock to be used for synchronization.

Parameters:
requestCycle - the current request cycle
Returns:
Any lock to be used to synchronize this target or null if no synchronization is needed.


Copyright © 2004-2007 Wicket developers. All Rights Reserved.