public final class Resource extends Object
| Constructor and Description | 
|---|
| Resource() | 
protected static final Logger log
public static URL getResourceUrl(FacesContext ctx, String path) throws MalformedURLException
ExternalContext.getResource(String) is
 checked for an non-null URL return value. In the case of a null return value (as it is the case for Weblogic 8.1
 for a packed war), a URL with a special URL handler is constructed, which can be used for opening a
 serlvet resource later. Internally, this special URL handler will call
 ServletContext.getResourceAsStream(String) when an inputstream is requested. This works even on Weblogic
 8.1ctx - the faces context from which to retrieve the resourcepath - an URL pathMalformedURLExceptionCopyright © 2016 The Apache Software Foundation. All Rights Reserved.