Java URL Value Check isJBoss5Url(URL fileUrl)

Here you can find the source of isJBoss5Url(URL fileUrl)

Description

Check if given URL is pointing to JBoss 5 VFS resource

License

Open Source License

Parameter

Parameter Description
fileUrl a parameter

Declaration

public static boolean isJBoss5Url(URL fileUrl) 

Method Source Code

//package com.java2s;

import java.net.URL;

public class Main {
    /**// ww w  .j  a  va 2s.  c  om
     * Prefix for Jar files in JBoss Virtual File System
     */
    public static final String JBOSS5_VFSZIP = "vfszip";
    public static final String JBOSS5_VFSMEMORY = "vfsmemory";

    /**
     * Check if given URL is pointing to JBoss 5 VFS resource
     * @param fileUrl
     * @return
     */
    public static boolean isJBoss5Url(URL fileUrl) {
        final String protocol = fileUrl.getProtocol();
        return JBOSS5_VFSZIP.equals(protocol)
                || JBOSS5_VFSMEMORY.equals(fileUrl.getProtocol());
    }
}

Related

  1. isJarURL(URL url)
  2. isJarURL(URL url)
  3. isJarURL(URL url)
  4. isJarURL(URL url)
  5. isJarURL(URL url)
  6. isLegalURL(final String url)
  7. isLocal(URL aURL)
  8. isLocalFile(URL url)
  9. isLocalFile(URL url)