org.apache.myfaces.config.util
Class GAEUtils

java.lang.Object
  extended by org.apache.myfaces.config.util.GAEUtils

public class GAEUtils
extends Object

Utility methods to use in Google Application Engine (GAE)

Author:
Leonardo Uribe

Field Summary
static String WEB_LIB_PREFIX
           
 
Constructor Summary
GAEUtils()
           
 
Method Summary
static Collection<URL> searchInWebLib(ExternalContext context, ClassLoader classloader, String filter, String prefix, String suffix)
          Look in all jars located inside /WEB-INF/lib/ folder for files that has some specified prefix and suffix.
static boolean wildcardMatch(String filename, String[] wildcardMatchers, String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEB_LIB_PREFIX

public static final String WEB_LIB_PREFIX
See Also:
Constant Field Values
Constructor Detail

GAEUtils

public GAEUtils()
Method Detail

searchInWebLib

public static Collection<URL> searchInWebLib(ExternalContext context,
                                             ClassLoader classloader,
                                             String filter,
                                             String prefix,
                                             String suffix)
                                      throws IOException
Look in all jars located inside /WEB-INF/lib/ folder for files that has some specified prefix and suffix. It is a simplification that can be done in GAE, because no JSF libraries are outside /WEB-INF/lib

Parameters:
context -
classloader -
prefix -
suffix -
Returns:
Throws:
IOException

wildcardMatch

public static boolean wildcardMatch(String filename,
                                    String[] wildcardMatchers,
                                    String prefix)


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