Here you can find the source of isJBoss5Url(URL fileUrl)
Parameter | Description |
---|---|
fileUrl | a parameter |
public static boolean isJBoss5Url(URL fileUrl)
//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()); } }