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 forResourceReference
. This handler is only used to generate URLs.- Author:
- Matej Knopp
-
-
Constructor Summary
Constructors Constructor Description ResourceReferenceRequestHandler(ResourceReference resourceReference)
Construct.ResourceReferenceRequestHandler(ResourceReference resourceReference, PageParameters pageParameters)
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.Locale
getLocale()
ResourceReferenceLogData
getLogData()
Returns the collected log data for this request handler and should never throw an exception.PageParameters
getPageParameters()
IResource
getResource()
ResourceReference
getResourceReference()
String
getStyle()
String
getVariation()
void
respond(IRequestCycle requestCycle)
Generates a response.String
toString()
-
-
-
Constructor Detail
-
ResourceReferenceRequestHandler
public ResourceReferenceRequestHandler(ResourceReference resourceReference)
Construct.- Parameters:
resourceReference
-
-
ResourceReferenceRequestHandler
public ResourceReferenceRequestHandler(ResourceReference resourceReference, PageParameters pageParameters)
Construct.- Parameters:
resourceReference
-pageParameters
-
-
-
Method Detail
-
getResourceReference
public ResourceReference getResourceReference()
- Returns:
- resource reference
-
getPageParameters
public PageParameters getPageParameters()
- Returns:
- page parameters
-
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
-
getLogData
public ResourceReferenceLogData 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
public void respond(IRequestCycle requestCycle)
Description copied from interface:IRequestHandler
Generates a response.- Specified by:
respond
in interfaceIRequestHandler
- Parameters:
requestCycle
- the current request cycle
-
getResource
public IResource getResource()
- Returns:
- resource
-
getVariation
public String getVariation()
- Returns:
- variation
-
-