|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sillyview.URLParser
public class URLParser
Provides some static methods for dealing with URLs passed from a View.
Constructor Summary | |
---|---|
URLParser()
|
Method Summary | |
---|---|
static String |
getFilenameWithoutPath(String x)
Given, for example, the string "http://foo.bar.com/some/dir/lala.jpg?foo=bar" will return "lala.jpg". |
static String |
getFilenameWithoutPath(URL u)
Strips the last element of the URL's path and returns it. |
static Hashtable<String,String> |
parseVariables(String x)
Parses a set of name/value pairs in the form of "name=value&foo=bar" into a Hashtable and returns it. |
static Hashtable |
parseVariables(URL u)
Takes the name/value pairs of the URL's query and returns them as a Hashtable. |
static void |
setPostToken(String s)
|
static void |
setPreToken(String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLParser()
Method Detail |
---|
public static void setPreToken(String s)
public static void setPostToken(String s)
public static Hashtable parseVariables(URL u)
u
- an URL
value
Hashtable
valuepublic static Hashtable<String,String> parseVariables(String x)
u
- an String
value
Hashtable
valuepublic static String getFilenameWithoutPath(URL u)
u
- an URL
value
String
valuepublic static String getFilenameWithoutPath(String x)
x
- a String
value
String
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |