Module org.apache.wicket.core
Class ResourceReferenceRequestHandler
java.lang.Object
org.apache.wicket.request.handler.resource.ResourceReferenceRequestHandler
- All Implemented Interfaces:
ILoggableRequestHandler
,IRequestHandler
public class ResourceReferenceRequestHandler
extends Object
implements IRequestHandler, ILoggableRequestHandler
Request handler for
ResourceReference
. This handler is only used to generate URLs.- Author:
- Matej Knopp
-
Constructor Summary
ConstructorDescriptionResourceReferenceRequestHandler
(ResourceReference resourceReference) Construct.ResourceReferenceRequestHandler
(ResourceReference resourceReference, PageParameters pageParameters) Construct. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Returns the collected log data for this request handler and should never throw an exception.getStyle()
void
respond
(IRequestCycle requestCycle) Generates a response.toString()
-
Constructor Details
-
ResourceReferenceRequestHandler
Construct.- Parameters:
resourceReference
-
-
ResourceReferenceRequestHandler
public ResourceReferenceRequestHandler(ResourceReference resourceReference, PageParameters pageParameters) Construct.- Parameters:
resourceReference
-pageParameters
-
-
-
Method Details
-
getResourceReference
- Returns:
- resource reference
-
getPageParameters
- Returns:
- page parameters
-
detach
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
-
getLogData
Description copied from interface:ILoggableRequestHandler
Returns the collected log data for this request handler and should never throw an exception. This method is never called before the request handler is detached.- Specified by:
getLogData
in interfaceILoggableRequestHandler
- Returns:
- The collected log data.
-
respond
Description copied from interface:IRequestHandler
Generates a response.- Specified by:
respond
in interfaceIRequestHandler
- Parameters:
requestCycle
- the current request cycle
-
getLocale
- Returns:
- reference locale
-
getResource
- Returns:
- resource
-
getStyle
- Returns:
- style
-
getVariation
- Returns:
- variation
-
toString
-