|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.util.URLUtil
public class URLUtil
Helper class to extract file paths from different urls
| Field Summary | |
|---|---|
static java.lang.String |
JBOSS5_VFS
Prefix for Jar files in JBoss Virtual File System |
static java.lang.String |
JBOSS5_VFSFILE
|
static java.lang.String |
JBOSS5_VFSMEMORY
|
static java.lang.String |
JBOSS5_VFSZIP
|
| Constructor Summary | |
|---|---|
URLUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
isJarURL(java.net.URL fileUrl)
Check if given URL is matching Jar pattern for different servers |
static boolean |
isJBoss5Url(java.net.URL fileUrl)
Check if given URL is pointing to JBoss 5 VFS resource |
static java.net.URL |
normalizeToFileProtocol(java.net.URL url)
Convert URLs to URLs with "file" protocol |
static boolean |
verifyUrl(java.lang.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 java.lang.String JBOSS5_VFS
public static final java.lang.String JBOSS5_VFSZIP
public static final java.lang.String JBOSS5_VFSMEMORY
public static final java.lang.String JBOSS5_VFSFILE
| Constructor Detail |
|---|
public URLUtil()
| Method Detail |
|---|
public static java.net.URL normalizeToFileProtocol(java.net.URL url)
url - URL to convert to a jar url
public static boolean verifyUrl(java.lang.String url)
url - The url string to verify.
public static boolean isJarURL(java.net.URL fileUrl)
fileUrl -
public static boolean isJBoss5Url(java.net.URL fileUrl)
fileUrl -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||