public abstract class UriBasedServiceInfo extends BaseServiceInfo
ServiceInfo
sServiceInfo.ServiceLabel, ServiceInfo.ServiceProperty
id
Constructor and Description |
---|
UriBasedServiceInfo(String id,
String uriString) |
UriBasedServiceInfo(String id,
String scheme,
String host,
int port,
String username,
String password,
String path) |
Modifier and Type | Method and Description |
---|---|
String |
getHost() |
String |
getPassword() |
String |
getPath() |
int |
getPort() |
String |
getQuery() |
String |
getScheme() |
String |
getSchemeSpecificPart() |
String |
getUri() |
protected UriInfo |
getUriInfo() |
UriInfoFactory |
getUriInfoFactory()
For URI-based (@link ServiceInfo}s which don't conform to the standard URI
format, override this method in your own ServiceInfo class to return a
UriInfoFactory which will create the
appropriate URIs. |
String |
getUserName() |
String |
toString() |
protected UriInfo |
validateAndCleanUriInfo(UriInfo uriInfo)
Validate the URI and clean it up by using defaults for any missing information, if possible.
|
getId
public UriBasedServiceInfo(String id, String scheme, String host, int port, String username, String password, String path)
public UriInfoFactory getUriInfoFactory()
UriInfoFactory
which will create the
appropriate URIs.public String getUri()
public String getUserName()
public String getPassword()
public String getHost()
public int getPort()
public String getPath()
public String getQuery()
public String getScheme()
public String getSchemeSpecificPart()
protected UriInfo validateAndCleanUriInfo(UriInfo uriInfo)
uriInfo
- uri info based on parsed payloadprotected UriInfo getUriInfo()