org.apache.wicket.request.target.resource
Class SharedResourceRequestTarget

java.lang.Object
  extended by org.apache.wicket.request.target.resource.SharedResourceRequestTarget
All Implemented Interfaces:
IRequestTarget, ISharedResourceRequestTarget

public class SharedResourceRequestTarget
extends java.lang.Object
implements ISharedResourceRequestTarget

Default implementation of ISharedResourceRequestTarget. Target that denotes a shared Resource.

Author:
Eelco Hillenius

Constructor Summary
SharedResourceRequestTarget(RequestParameters requestParameters)
          Construct.
 
Method Summary
 void detach(RequestCycle requestCycle)
          This method is called at 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.
 boolean equals(java.lang.Object obj)
           
 RequestParameters getRequestParameters()
          Gets the request parameters.
 java.lang.String getResourceKey()
           
 int hashCode()
           
 void respond(RequestCycle requestCycle)
          Respond by looking up the shared resource and delegating the actual response to that resource.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SharedResourceRequestTarget

public SharedResourceRequestTarget(RequestParameters requestParameters)
Construct.

Parameters:
requestParameters - the request parameters
Method Detail

detach

public void detach(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
This method is called at 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.

Specified by:
detach in interface IRequestTarget
Parameters:
requestCycle - the current request cycle
See Also:
IRequestTarget.detach(org.apache.wicket.RequestCycle)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getRequestParameters

public final RequestParameters getRequestParameters()
Description copied from interface: ISharedResourceRequestTarget
Gets the request parameters.

Specified by:
getRequestParameters in interface ISharedResourceRequestTarget
Returns:
the request parameters
See Also:
()

getResourceKey

public final java.lang.String getResourceKey()
Specified by:
getResourceKey in interface ISharedResourceRequestTarget
Returns:
The resource key for this SharedResource
See Also:
ISharedResourceRequestTarget.getResourceKey()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

respond

public void respond(RequestCycle requestCycle)
Respond by looking up the shared resource and delegating the actual response to that resource.

Specified by:
respond in interface IRequestTarget
Parameters:
requestCycle - the current request cycle
See Also:
IRequestTarget.respond(org.apache.wicket.RequestCycle)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.