Search in sources :

Example 41 with ResourceReferenceRequestHandler

use of org.apache.wicket.request.handler.resource.ResourceReferenceRequestHandler in project wicket-orientdb by OrienteerBAP.

the class TransactionRequestCycleListener method isOurContent.

@Override
public boolean isOurContent(RequestCycle cycle, IRequestHandler handler) {
    if (handler instanceof ResourceReferenceRequestHandler) {
        ResourceReferenceRequestHandler rrrHandler = (ResourceReferenceRequestHandler) handler;
        ResourceReference reference = rrrHandler.getResourceReference();
        return !(reference instanceof PackageResourceReference);
    }
    return true;
}
Also used : ResourceReferenceRequestHandler(org.apache.wicket.request.handler.resource.ResourceReferenceRequestHandler) PackageResourceReference(org.apache.wicket.request.resource.PackageResourceReference) PackageResourceReference(org.apache.wicket.request.resource.PackageResourceReference) ResourceReference(org.apache.wicket.request.resource.ResourceReference)

Aggregations

ResourceReferenceRequestHandler (org.apache.wicket.request.handler.resource.ResourceReferenceRequestHandler)41 Url (org.apache.wicket.request.Url)33 Test (org.junit.Test)31 ResourceUrl (org.apache.wicket.request.resource.caching.ResourceUrl)26 IRequestHandler (org.apache.wicket.request.IRequestHandler)20 PageParameters (org.apache.wicket.request.mapper.parameter.PageParameters)9 PackageResourceReference (org.apache.wicket.request.resource.PackageResourceReference)6 ResourceReference (org.apache.wicket.request.resource.ResourceReference)6 Request (org.apache.wicket.request.Request)5 Locale (java.util.Locale)3 IResource (org.apache.wicket.request.resource.IResource)3 IStaticCacheableResource (org.apache.wicket.request.resource.caching.IStaticCacheableResource)3 ContextRelativeResource (org.apache.wicket.request.resource.ContextRelativeResource)2 MetaInfStaticResourceReference (org.apache.wicket.request.resource.MetaInfStaticResourceReference)2 UrlResourceReference (org.apache.wicket.request.resource.UrlResourceReference)2 ResourceBundleReference (org.apache.wicket.resource.bundles.ResourceBundleReference)2 JSONObject (com.github.openjson.JSONObject)1 StringTokenizer (java.util.StringTokenizer)1 Conversation (javax.enterprise.context.Conversation)1 WicketRuntimeException (org.apache.wicket.WicketRuntimeException)1