public final class LeafUrlType extends Object implements Vfs.UrlType
Instances are fully immutable and therefore threadsafe.
Constructor and Description |
---|
LeafUrlType(String urlSuffix)
Creates a new LeafUrlType that matches URLs with the given suffix.
|
public LeafUrlType(String urlSuffix)
urlSuffix
- the filename suffix to match. Must not be null.public boolean matches(URL url)
matches
in interface Vfs.UrlType
public Vfs.Dir createDir(URL url)
createDir
in interface Vfs.UrlType
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.