org.sblim.slp
public class ServiceURL extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
LIFETIME_DEFAULT
The default URL lifetime (3 hours) in seconds.
|
static int |
LIFETIME_MAXIMUM
The maximum URL lifetime (about 18 hours) in seconds.
|
static int |
LIFETIME_NONE
Indicates that the URL has a zero lifetime.
|
static int |
LIFETIME_PERMANENT
Indicates that the API implementation should continuously re-register the
URL until the application exits.
|
static int |
NO_PORT
Indicates that no port information is required or was returned for this
URL.
|
Constructor and Description |
---|
ServiceURL(String pServiceURL,
int pLifetime)
Construct a service URL object having the specified lifetime.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHost()
Returns the host identifier.
|
int |
getLifetime()
Returns the service advertisement lifetime.
|
int |
getPort()
Returns the port number, if any.
|
ServiceType |
getServiceType()
Returns the service type object representing the service type name of the
URL.
|
String |
getTransport()
Get the network layer transport identifier.
|
String |
getURLPath()
Returns the URL path description, if any.
|
int |
hashCode() |
void |
setServiceType(ServiceType pServicetype)
Set the service type name to the object.
|
String |
toString() |
public static final int NO_PORT
public static final int LIFETIME_NONE
public static final int LIFETIME_DEFAULT
public static final int LIFETIME_MAXIMUM
public static final int LIFETIME_PERMANENT
public ServiceURL(String pServiceURL, int pLifetime)
pServiceURL
- The URL as a string. Must be either a service: URL or a valid
generic URL according to RFC 2396 [2].pLifetime
- The service advertisement lifetime in seconds. This value may
be either between LIFETIME_NONE and LIFETIME_MAXIMUM or
LIFETIME_PERMANENT.public ServiceType getServiceType()
public void setServiceType(ServiceType pServicetype)
pServicetype
- The service type object.public String getTransport()
public String getHost()
public int getPort()
public String getURLPath()
public int getLifetime()
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.