fix service discovery has identity
This commit is contained in:
parent
fee1a67332
commit
5ce1e80e73
|
@ -168,15 +168,19 @@ public class ServiceDiscoveryResult {
|
||||||
return this.features;
|
return this.features;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasIdentity(String category, String type) {
|
public Identity getIdentity(String category, String type) {
|
||||||
for (Identity id : this.getIdentities()) {
|
for (Identity id : this.getIdentities()) {
|
||||||
if ((category == null || id.getCategory().equals(category)) &&
|
if ((category == null || id.getCategory().equals(category)) &&
|
||||||
(type == null || id.getType().equals(type))) {
|
(type == null || id.getType().equals(type))) {
|
||||||
return true;
|
return id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean hasIdentity(String category, String type) {
|
||||||
|
return getIdentity(category, type) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getExtendedDiscoInformation(String formType, String name) {
|
public String getExtendedDiscoInformation(String formType, String name) {
|
||||||
|
|
Loading…
Reference in a new issue