org.apache.wicket.request.handler
Class ComponentRenderingRequestHandler

java.lang.Object
  extended by org.apache.wicket.request.handler.ComponentRenderingRequestHandler
All Implemented Interfaces:
IComponentRequestHandler, IRequestHandler

public class ComponentRenderingRequestHandler
extends java.lang.Object
implements IComponentRequestHandler

Request handler that renders a component

Author:
igor.vaynberg

Constructor Summary
ComponentRenderingRequestHandler(Component component)
          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.
 IRequestableComponent getComponent()
          Returns the component instance.
 java.lang.String getComponentPath()
          Returns the page relative path to the component instance.
 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

ComponentRenderingRequestHandler

public ComponentRenderingRequestHandler(Component component)
Construct.

Parameters:
component -
Method Detail

getComponent

public IRequestableComponent getComponent()
Description copied from interface: IComponentRequestHandler
Returns the component instance.

Specified by:
getComponent in interface IComponentRequestHandler
Returns:
component instance

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

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

getComponentPath

public final java.lang.String getComponentPath()
Description copied from interface: IComponentRequestHandler
Returns the page relative path to the component instance.

Specified by:
getComponentPath in interface IComponentRequestHandler
Returns:
the page relative path to the component instance


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