com.inline.feature
Class FeatureURL
java.lang.Object
|
+--com.inline.feature.FeatureURL
- public class FeatureURL
- extends java.lang.Object
Some convenience methods for constructing and parsing feature URLs.
Method Summary |
static java.lang.String |
getSignature(java.net.URL url)
Extracts the signature from the supplied URL. |
static java.lang.String |
getType(java.net.URL url)
Extracts the type from the supplied URL. |
static java.net.URL |
makeURL(java.lang.String type)
Constructs a feature following this syntax: feature:type |
static java.net.URL |
makeURL(java.lang.String type,
java.lang.String signature)
Constructs a feature following this syntax: feature:type:signature |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FeatureURL
public FeatureURL()
makeURL
public static java.net.URL makeURL(java.lang.String type)
- Constructs a feature following this syntax:
feature:type
makeURL
public static java.net.URL makeURL(java.lang.String type,
java.lang.String signature)
- Constructs a feature following this syntax:
feature:type:signature
getType
public static java.lang.String getType(java.net.URL url)
- Extracts the type from the supplied URL.
getSignature
public static java.lang.String getSignature(java.net.URL url)
- Extracts the signature from the supplied URL.