public class MockResource
extends javax.faces.application.Resource
Mock implementation of Resource.
| Constructor and Description |
|---|
MockResource(MockResourceMeta resourceMeta,
MockResourceLoader resourceLoader,
MockResourceHandlerSupport support,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream() |
String |
getRequestPath() |
MockResourceLoader |
getResourceLoader() |
Map<String,String> |
getResponseHeaders() |
URL |
getURL() |
boolean |
userAgentNeedsUpdate(javax.faces.context.FacesContext context) |
public MockResource(MockResourceMeta resourceMeta, MockResourceLoader resourceLoader, MockResourceHandlerSupport support, String contentType)
public MockResourceLoader getResourceLoader()
public InputStream getInputStream() throws IOException
getInputStream in class javax.faces.application.ResourceIOExceptionpublic String getRequestPath()
getRequestPath in class javax.faces.application.Resourcepublic Map<String,String> getResponseHeaders()
getResponseHeaders in class javax.faces.application.Resourcepublic URL getURL()
getURL in class javax.faces.application.Resourcepublic boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
userAgentNeedsUpdate in class javax.faces.application.ResourceCopyright © 2017 The Apache Software Foundation. All rights reserved.