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.Resource
public URL getURL()
getURL
in class javax.faces.application.Resource
public InputStream getInputStream() throws IOException
getInputStream
in class javax.faces.application.Resource
IOException
public Map<String,String> getResponseHeaders()
getResponseHeaders
in class javax.faces.application.Resource
public boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
userAgentNeedsUpdate
in class javax.faces.application.Resource
public String getLibraryName()
getLibraryName
in class javax.faces.application.Resource
public String getResourceName()
getResourceName
in class javax.faces.application.Resource
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.