|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.carol.util.configuration.ConfigurationUtil
public class ConfigurationUtil
Utility class to analyze some configuration properties
| Method Summary | |
|---|---|
static java.lang.String |
getHostOfUrl(java.lang.String url)
Parses the given url, and returns the hostname If not found, returns localhost |
static int |
getPortOfUrl(java.lang.String url)
Parses the given url, and returns the port number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int getPortOfUrl(java.lang.String url)
throws ConfigurationException
url - given url on which extract port number
ConfigurationException - if URL is invalid
public static java.lang.String getHostOfUrl(java.lang.String url)
throws ConfigurationException
url - given url on which extract hostname
ConfigurationException - if URL is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||