org.apache.wicket.request.handler.resource
Class ResourceRequestHandler

java.lang.Object
  extended by org.apache.wicket.request.handler.resource.ResourceRequestHandler
All Implemented Interfaces:
IRequestHandler

public class ResourceRequestHandler
extends java.lang.Object
implements IRequestHandler

Request handler that renders a resource.

Author:
Matej Knopp

Constructor Summary
ResourceRequestHandler(IResource resource, PageParameters pageParameters)
          Construct.
 
Method Summary
 void detach(IRequestCycle 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.
 PageParameters getPageParameters()
           
 IResource getResource()
           
 void respond(IRequestCycle requestCycle)
          Generates a response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceRequestHandler

public ResourceRequestHandler(IResource resource,
                              PageParameters pageParameters)
Construct.

Parameters:
resource -
locale -
style -
variation -
pageParameters -
Method Detail

getPageParameters

public PageParameters getPageParameters()
Returns:
page parameters

getResource

public IResource getResource()
Returns:
resource

respond

public void respond(IRequestCycle requestCycle)
Description copied from interface: IRequestHandler
Generates a response.

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

detach

public void detach(IRequestCycle requestCycle)
Description copied from interface: IRequestHandler
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 IRequestHandler
Parameters:
requestCycle - the current request cycle
See Also:
org.apache.org.apache.wicket.request.IRequestHandler#detach(org.apache.wicket.request.cycle.RequestCycle)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.