Search in sources :

Example 1 with ResourceHandlerWrapper

use of javax.faces.application.ResourceHandlerWrapper in project liferay-faces-bridge-impl by liferay.

the class ApplicationPrimeFacesHeadImpl method getResourceHandler.

@Override
public ResourceHandler getResourceHandler() {
    ResourceHandler resourceHandler = super.getResourceHandler();
    // request path, not an encoded resourceURL.
    if (resourceHandler instanceof ResourceHandlerOuterImpl) {
        ResourceHandlerWrapper resourceHandlerWrapper = (ResourceHandlerOuterImpl) resourceHandler;
        resourceHandler = resourceHandlerWrapper.getWrapped();
    }
    return resourceHandler;
}
Also used : ResourceHandlerOuterImpl(com.liferay.faces.bridge.application.internal.ResourceHandlerOuterImpl) ResourceHandlerWrapper(javax.faces.application.ResourceHandlerWrapper) ResourceHandler(javax.faces.application.ResourceHandler)

Aggregations

ResourceHandlerOuterImpl (com.liferay.faces.bridge.application.internal.ResourceHandlerOuterImpl)1 ResourceHandler (javax.faces.application.ResourceHandler)1 ResourceHandlerWrapper (javax.faces.application.ResourceHandlerWrapper)1