|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opensymphony.xwork2.util.URLUtil
public class URLUtil
Helper class to extract file paths from different urls
Field Summary | |
---|---|
static String |
JBOSS5_VFSMEMORY
|
static String |
JBOSS5_VFSZIP
Prefix for Jar files in JBoss Virtual File System |
Constructor Summary | |
---|---|
URLUtil()
|
Method Summary | |
---|---|
static boolean |
isJarURL(URL fileUrl)
Check if given URL is matching Jar pattern for different servers |
static boolean |
isJBoss5Url(URL fileUrl)
Check if given URL is pointing to JBoss 5 VFS resource |
static URL |
normalizeToFileProtocol(URL url)
Convert URLs to URLs with "file" protocol |
static boolean |
verifyUrl(String url)
Verify That the given String is in valid URL format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JBOSS5_VFSZIP
public static final String JBOSS5_VFSMEMORY
Constructor Detail |
---|
public URLUtil()
Method Detail |
---|
public static URL normalizeToFileProtocol(URL url)
url
- URL to convert to a jar url
public static final boolean verifyUrl(String url)
url
- The url string to verify.
public static boolean isJarURL(URL fileUrl)
fileUrl
-
public static boolean isJBoss5Url(URL fileUrl)
fileUrl
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |