public class URLResource
extends javax.faces.application.Resource
Implementation of Resource which serves resources from absolute path.
Thus it does provide only getRequestPath() method, all other methods throws UnsupportedOperationException.
| Constructor and Description |
|---|
URLResource(ResourcePath resourcePath) |
URLResource(URL url) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream() |
String |
getLibraryName() |
String |
getRequestPath() |
String |
getResourceName() |
Map<String,String> |
getResponseHeaders() |
URL |
getURL() |
boolean |
userAgentNeedsUpdate(javax.faces.context.FacesContext context) |
public URLResource(ResourcePath resourcePath)
public URLResource(URL url)
public String getRequestPath()
getRequestPath in class javax.faces.application.Resourcepublic URL getURL()
getURL in class javax.faces.application.Resourcepublic InputStream getInputStream() throws IOException
getInputStream in class javax.faces.application.ResourceIOExceptionpublic Map<String,String> getResponseHeaders()
getResponseHeaders in class javax.faces.application.Resourcepublic boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
userAgentNeedsUpdate in class javax.faces.application.Resourcepublic String getLibraryName()
getLibraryName in class javax.faces.application.Resourcepublic String getResourceName()
getResourceName in class javax.faces.application.ResourceCopyright © 2014 JBoss by Red Hat. All Rights Reserved.