Errai 3.0.1-SNAPSHOT

org.jboss.errai.reflections.vfs
Class UrlTypeVFS

java.lang.Object
  extended by org.jboss.errai.reflections.vfs.UrlTypeVFS
All Implemented Interfaces:
Vfs.UrlType

public class UrlTypeVFS
extends Object
implements Vfs.UrlType

UrlType to be used by Reflections library. This class handles the vfszip and vfsfile protocol of JBOSS files.

to use it, register it in Vfs via Vfs.addDefaultURLTypes(org.jboss.errai.reflections.vfs.Vfs.UrlType) or Vfs.setDefaultURLTypes(java.util.List).

Author:
Sergio Pola

Field Summary
static String[] REPLACE_EXTENSION
           
 
Constructor Summary
UrlTypeVFS()
           
 
Method Summary
 URL adaptURL(URL url)
           
 Vfs.Dir createDir(URL url)
           
 boolean matches(URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPLACE_EXTENSION

public static final String[] REPLACE_EXTENSION
Constructor Detail

UrlTypeVFS

public UrlTypeVFS()
Method Detail

matches

public boolean matches(URL url)
Specified by:
matches in interface Vfs.UrlType

createDir

public Vfs.Dir createDir(URL url)
Specified by:
createDir in interface Vfs.UrlType

adaptURL

public URL adaptURL(URL url)
             throws MalformedURLException
Throws:
MalformedURLException

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.