Class ComponentRenderingRequestHandler
- java.lang.Object
-
- org.apache.wicket.core.request.handler.ComponentRenderingRequestHandler
-
- All Implemented Interfaces:
IComponentRequestHandler
,IRequestHandler
public class ComponentRenderingRequestHandler extends Object implements IComponentRequestHandler
Request handler that renders a component- Author:
- igor.vaynberg
-
-
Constructor Summary
Constructors Constructor Description ComponentRenderingRequestHandler(Component component)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.String
getComponentPath()
Returns the page relative path to the component instance.void
respond(IRequestCycle requestCycle)
Generates a response.
-
-
-
Constructor Detail
-
ComponentRenderingRequestHandler
public ComponentRenderingRequestHandler(Component component)
Construct.- Parameters:
component
- the component to render
-
-
Method Detail
-
getComponent
public IRequestableComponent getComponent()
Description copied from interface:IComponentRequestHandler
Returns the component instance.- Specified by:
getComponent
in interfaceIComponentRequestHandler
- 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 interfaceIRequestHandler
- Parameters:
requestCycle
- the current request cycle
-
respond
public void respond(IRequestCycle requestCycle)
Description copied from interface:IRequestHandler
Generates a response.- Specified by:
respond
in interfaceIRequestHandler
- Parameters:
requestCycle
- the current request cycle
-
getComponentPath
public final String getComponentPath()
Description copied from interface:IComponentRequestHandler
Returns the page relative path to the component instance.- Specified by:
getComponentPath
in interfaceIComponentRequestHandler
- Returns:
- the page relative path to the component instance
-
-