org.apache.myfaces.test.mock.resource
Class MockResource
java.lang.Object
javax.faces.application.Resource
org.apache.myfaces.test.mock.resource.MockResource
public class MockResource
- extends javax.faces.application.Resource
Mock implementation of Resource
.
- Since:
- 1.0.0
- Version:
- $Revision: 990408 $ $Date: 2010-08-28 20:59:21 +0200 (Sat, 28 Aug 2010) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
Fields inherited from class javax.faces.application.Resource |
COMPONENT_RESOURCE_KEY |
Methods inherited from class javax.faces.application.Resource |
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString |
MockResource
public MockResource(MockResourceMeta resourceMeta,
MockResourceLoader resourceLoader,
MockResourceHandlerSupport support,
String contentType)
getResourceLoader
public MockResourceLoader getResourceLoader()
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in class javax.faces.application.Resource
- Throws:
IOException
getRequestPath
public String getRequestPath()
- Specified by:
getRequestPath
in class javax.faces.application.Resource
getResponseHeaders
public Map<String,String> getResponseHeaders()
- Specified by:
getResponseHeaders
in class javax.faces.application.Resource
getURL
public URL getURL()
- Specified by:
getURL
in class javax.faces.application.Resource
userAgentNeedsUpdate
public boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
- Specified by:
userAgentNeedsUpdate
in class javax.faces.application.Resource
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.