org.jboss.virtual.plugins.context
Class AbstractContextFactory
java.lang.Object
org.jboss.virtual.plugins.context.AbstractContextFactory
- All Implemented Interfaces:
- VFSContextFactory
- Direct Known Subclasses:
- FileSystemContextFactory, JarContextFactory, ZipEntryContextFactory
public abstract class AbstractContextFactory
- extends Object
- implements VFSContextFactory
Abstract context factory.
- Author:
- Ales Justin
Method Summary |
protected static URI |
fromVFS(URI uri)
Check if URI param is already VFS URI. |
protected static URL |
fromVFS(URL url)
Check if URL param is already VFS URL. |
String[] |
getProtocols()
Get the URL protocols/URI schemes this factory supports |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContextFactory
protected AbstractContextFactory(String... protocols)
getProtocols
public String[] getProtocols()
- Description copied from interface:
VFSContextFactory
- Get the URL protocols/URI schemes this factory supports
- Specified by:
getProtocols
in interface VFSContextFactory
- Returns:
- list of supported protocols.
fromVFS
protected static URL fromVFS(URL url)
throws MalformedURLException
- Check if URL param is already VFS URL.
- Parameters:
url
- the url
- Returns:
- stripped url
- Throws:
MalformedURLException
- for any error
fromVFS
protected static URI fromVFS(URI uri)
throws URISyntaxException
- Check if URI param is already VFS URI.
- Parameters:
uri
- the uri
- Returns:
- stripped uri
- Throws:
URISyntaxException
- for any error
Copyright © 2010 JBoss, A division of Red Hat, Inc. All Rights Reserved.