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

java.lang.Object
  extended by org.apache.myfaces.test.mock.resource.MockResourceHandlerSupport

public class MockResourceHandlerSupport
extends Object

Store additional info used by MockResource and MockResourceHandler

Since:
1.0.0
Version:
$Revision: 960906 $ $Date: 2010-07-06 09:45:40 -0500 (Mar, 06 Jul 2010) $
Author:
Leonardo Uribe (latest modification by $Author: jakobk $)

Constructor Summary
MockResourceHandlerSupport()
           
MockResourceHandlerSupport(boolean extensionMapping, String mapping)
           
MockResourceHandlerSupport(boolean extensionMapping, String mapping, ClassLoader classLoader)
           
MockResourceHandlerSupport(boolean extensionMapping, String mapping, MockResourceLoader[] resourceLoaders)
           
 
Method Summary
 String getMapping()
          Get the mapping used as prefix(/faces) or sufix(.jsf)
 MockResourceLoader[] getResourceLoaders()
          Return an array of resource loaders used to find resources using the standard.
 boolean isExtensionMapping()
          Check if the mapping used is done using extensions (.xhtml, .jsf) or if it is not (/faces/*)
 void setExtensionMapping(boolean extensionMapping)
           
 void setMapping(String prefix)
           
 void setResourceLoaders(MockResourceLoader[] resourceLoaders)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockResourceHandlerSupport

public MockResourceHandlerSupport()

MockResourceHandlerSupport

public MockResourceHandlerSupport(boolean extensionMapping,
                                  String mapping)

MockResourceHandlerSupport

public MockResourceHandlerSupport(boolean extensionMapping,
                                  String mapping,
                                  ClassLoader classLoader)

MockResourceHandlerSupport

public MockResourceHandlerSupport(boolean extensionMapping,
                                  String mapping,
                                  MockResourceLoader[] resourceLoaders)
Method Detail

isExtensionMapping

public boolean isExtensionMapping()
Check if the mapping used is done using extensions (.xhtml, .jsf) or if it is not (/faces/*)

Returns:

setExtensionMapping

public void setExtensionMapping(boolean extensionMapping)

getMapping

public String getMapping()
Get the mapping used as prefix(/faces) or sufix(.jsf)

Returns:

setMapping

public void setMapping(String prefix)

getResourceLoaders

public MockResourceLoader[] getResourceLoaders()
Return an array of resource loaders used to find resources using the standard. The order of ResourceLoaders define its precedence.

Returns:

setResourceLoaders

public void setResourceLoaders(MockResourceLoader[] resourceLoaders)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.