public class DefaultResourceHandler
extends javax.faces.application.ResourceHandlerWrapper
ResourceHandler implementation, delegating both createResource(String) and
createResource(String, String) to createResource(String, String, String). Implementors should
only need to override createResource(String, String, String). Additionally, the constructor checks if the
wrapped resource handler has the createResource(String, String, String) properly implemented, otherwise
fall back to either createResource(String, String) or createResource(String) on the wrapped
resource handler.| Constructor and Description |
|---|
DefaultResourceHandler(javax.faces.application.ResourceHandler wrapped)
Creates a new instance of this unmapped resource handler which wraps the given resource handler.
|
| Modifier and Type | Method and Description |
|---|---|
javax.faces.application.Resource |
createResource(String resourceName)
Delegate to
createResource(String, String, String) with null as library name and content
type. |
javax.faces.application.Resource |
createResource(String resourceName,
String libraryName)
Delegate to
createResource(String, String, String) with null as content type. |
javax.faces.application.Resource |
createResource(String resourceName,
String libraryName,
String contentType)
Delegate to the right
createResource() method of the wrapped resource handler. |
javax.faces.application.ResourceHandler |
getWrapped() |
public DefaultResourceHandler(javax.faces.application.ResourceHandler wrapped)
createResource method is being declared on the wrapped resource handler.wrapped - The resource handler to be wrapped.public javax.faces.application.Resource createResource(String resourceName)
createResource(String, String, String) with null as library name and content
type.createResource in class javax.faces.application.ResourceHandlerWrapperpublic javax.faces.application.Resource createResource(String resourceName, String libraryName)
createResource(String, String, String) with null as content type.createResource in class javax.faces.application.ResourceHandlerWrapperpublic javax.faces.application.Resource createResource(String resourceName, String libraryName, String contentType)
createResource() method of the wrapped resource handler. Some resource handler
implementations namely doesn't implement all the three createResource() methods.createResource in class javax.faces.application.ResourceHandlerWrapperpublic javax.faces.application.ResourceHandler getWrapped()
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.ResourceHandler>getWrapped in class javax.faces.application.ResourceHandlerWrapperCopyright © 2012–2014 OmniFaces. All rights reserved.