|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.ext.config.Util
public class Util
Description of the Class
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static String |
expand(String s)
Description of the Method |
static String |
getLocalHost()
Gets the local address. |
static String |
getProxyFromUserAgent()
|
static ServerSocket |
getServerSocket(InetAddress address,
int port)
|
static byte[] |
inetAddressToBytes(String ipAddr)
|
static boolean |
isMulticast(URI u)
|
static boolean |
isNonRoutable(URI u)
|
static boolean |
isPortAvailable(InetAddress address,
int port)
Checks for the specified port availability. |
static URI |
model(String scheme)
Description of the Method |
static URI |
model(String scheme,
int port)
|
static URI |
normalize(Address address)
Description of the Method |
static URI |
normalize(Address address,
boolean portScan)
Description of the Method |
static URI |
normalize(Address address,
boolean portScan,
URI model)
Address normalizer. |
static URI |
toURI(String scheme,
String host,
int port)
Description of the Method |
static String |
validateAddress(URI address)
Description of the Method |
static String |
validateAddress(URI address,
boolean requireHost)
Description of the Method |
static String |
validateAddress(URI address,
int minimumPort)
|
static String |
validateAddress(URI address,
String scheme)
Validate address against the provided scheme. |
static String |
validateAddress(URI address,
String scheme,
boolean requireHost)
Validate address against the provided scheme and host requirement. |
static String |
validateAddress(URI address,
String scheme,
boolean requireHost,
int minimumPort)
Validate address against the provided scheme and host requirement. |
static String |
validateAddress(URI address,
String scheme,
int minimumPort)
Validate address against the provided scheme and host requirement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static String expand(String s)
s - Description of the Parameter
public static String getLocalHost()
public static String validateAddress(URI address)
address - Description of the Parameter
public static String validateAddress(URI address,
int minimumPort)
public static String validateAddress(URI address,
boolean requireHost)
address - Description of the ParameterrequireHost - Description of the Parameter
public static String validateAddress(URI address,
String scheme)
address - Description of the Parameterscheme - scheme
public static String validateAddress(URI address,
String scheme,
boolean requireHost)
address - addresssscheme - schemerequireHost - Description of the Parameter
public static String validateAddress(URI address,
String scheme,
int minimumPort)
address - addresssscheme - schememinimumPort - minimum port
public static String validateAddress(URI address,
String scheme,
boolean requireHost,
int minimumPort)
address - addresssscheme - schemerequireHost - Description of the ParameterminimumPort - minimum port
public static URI normalize(Address address)
address - Description of the Parameter
public static URI normalize(Address address,
boolean portScan)
address - Description of the ParameterportScan - port scan
public static URI normalize(Address address,
boolean portScan,
URI model)
address - base addressportScan - port scanmodel - model address
public static URI toURI(String scheme,
String host,
int port)
scheme - Description of the Parameterhost - Description of the Parameterport - Description of the Parameter
public static URI model(String scheme)
scheme - Description of the Parameter
public static URI model(String scheme,
int port)
public static boolean isPortAvailable(InetAddress address,
int port)
address - target system addressport - target port
public static ServerSocket getServerSocket(InetAddress address,
int port)
public static String getProxyFromUserAgent()
public static boolean isNonRoutable(URI u)
public static boolean isMulticast(URI u)
public static byte[] inetAddressToBytes(String ipAddr)
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||