org.apache.myfaces.test.mock.resource
Class MockResource

java.lang.Object
  extended by javax.faces.application.Resource
      extended by 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: 1604204 $ $Date: 2014-06-20 11:20:34 -0500 (Fri, 20 Jun 2014) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Field Summary
 
Fields inherited from class javax.faces.application.Resource
COMPONENT_RESOURCE_KEY
 
Constructor Summary
MockResource(MockResourceMeta resourceMeta, MockResourceLoader resourceLoader, MockResourceHandlerSupport support, String contentType)
           
 
Method Summary
 InputStream getInputStream()
           
 String getRequestPath()
           
 MockResourceLoader getResourceLoader()
           
 Map<String,String> getResponseHeaders()
           
 URL getURL()
           
 boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
           
 
Methods inherited from class javax.faces.application.Resource
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockResource

public MockResource(MockResourceMeta resourceMeta,
                    MockResourceLoader resourceLoader,
                    MockResourceHandlerSupport support,
                    String contentType)
Method Detail

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 © 2014 The Apache Software Foundation. All Rights Reserved.