de.agilecoders.wicket.extensions.request

Class StaticResourceRewriteMapper

    • Method Detail

      • mapHandler

        public org.apache.wicket.request.Url mapHandler(org.apache.wicket.request.IRequestHandler requestHandler)

        If the requestHandler is a ResourceReferenceRequestHandler, delegate to Wicket’s default mapper for creating an appropriate URL, and then prepend the baseUrl that was provided to the StaticResourceRewriteMapper constructor.

        Specified by:
        mapHandler in interface org.apache.wicket.request.IRequestMapper
        Returns:
        a rewritten Url to the resource, or null if requestHandler is not for a resource reference
      • mapRequest

        public org.apache.wicket.request.IRequestHandler mapRequest(org.apache.wicket.request.Request request)

        Always return null, since StaticResourceRewriteMapper does not play any part in handling requests (they will be handled by Wicket’s default mechanism).

        Specified by:
        mapRequest in interface org.apache.wicket.request.IRequestMapper
      • getCompatibilityScore

        public int getCompatibilityScore(org.apache.wicket.request.Request request)

        Always return 0, since StaticResourceRewriteMapper does not play any part in handling requests (they will be handled by Wicket’s default mechanism).

        Specified by:
        getCompatibilityScore in interface org.apache.wicket.request.IRequestMapper

Copyright © 2011–2014 AgileCoders. All rights reserved.