|
||||||||||
| 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 String |
JBOSS5_VFS
|
static String |
JBOSS5_VFSFILE
|
static String |
JBOSS5_VFSMEMORY
|
static String |
JBOSS5_VFSZIP
|
| Constructor Summary | |
|---|---|
URLUtil()
|
|
| Method Summary | |
|---|---|
static List<URL> |
getAllJBossPhysicalUrls(URL url)
|
static URL |
getJBossPhysicalUrl(URL url)
Try to determine physical file location. |
static boolean |
isJarURL(URL fileUrl)
Check if given URL is matching Jar pattern for different servers |
static boolean |
isJBossUrl(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_VFS
public static final String JBOSS5_VFSZIP
public static final String JBOSS5_VFSMEMORY
public static final String JBOSS5_VFSFILE
| Constructor Detail |
|---|
public URLUtil()
| Method Detail |
|---|
public static URL normalizeToFileProtocol(URL url)
url - URL to convert to a jar url
public static boolean verifyUrl(String url)
url - The url string to verify.
public static boolean isJarURL(URL fileUrl)
fileUrl -
public static boolean isJBossUrl(URL fileUrl)
fileUrl -
public static URL getJBossPhysicalUrl(URL url)
throws IOException
url - JBoss VFS URL
IOException - If conversion fails
public static List<URL> getAllJBossPhysicalUrls(URL url)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||