|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.view.facelets.util.Resource
public final class Resource
| Field Summary | |
|---|---|
protected static java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
Resource()
|
|
| Method Summary | |
|---|---|
static java.net.URL |
getResourceUrl(javax.faces.context.FacesContext ctx,
java.lang.String path)
Get an URL of an internal resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger log
| Constructor Detail |
|---|
public Resource()
| Method Detail |
|---|
public static java.net.URL getResourceUrl(javax.faces.context.FacesContext ctx,
java.lang.String path)
throws java.net.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.1
ctx - the faces context from which to retrieve the resourcepath - an URL path
java.net.MalformedURLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||