public class SearchParameter
extends java.lang.Object
Search| Modifier and Type | Class and Description |
|---|---|
static class |
SearchParameter.SearchSetEntry |
| Modifier and Type | Field and Description |
|---|---|
static org.ws4d.java.types.SearchParameter.EmptySearchParameter |
EMPTY_SEARCH_PARAMETER |
| Constructor and Description |
|---|
SearchParameter() |
SearchParameter(DiscoveryBinding binding) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComManIdForLocalSearch(java.lang.String comManId) |
void |
allowAllForLocalSearch() |
void |
denyAllForLocalSearch() |
boolean |
equals(java.lang.Object obj) |
HashMap |
getComMan2DeviceTypes() |
HashMap |
getComMan2ServiceTypes() |
CredentialInfo |
getCredentialInfoForLocalSearch()
Returns the credentialInfo to use for local search.
|
QNameSet |
getDeviceTypes(java.lang.String comManId)
Gets device port types of device to discover.
|
java.lang.Object |
getReferenceObject()
Gets reference object.
|
ProbeScopeSet |
getScopes()
Gets list of scopes of device to discover.
|
HashMap |
getSearchMap()
Returns the search map to use when discovering devices and services.
|
QNameSet |
getServiceTypes(java.lang.String comManId)
Gets service port types of service to discover.
|
boolean |
hasDeviceCriteria() |
int |
hashCode() |
boolean |
hasServiceCriteria() |
boolean |
isExceptRemoteSearch() |
boolean |
isLocalSearch() |
boolean |
matchesDeviceTypes(HashMap otherComMan2deviceType) |
static boolean |
matchesDeviceTypes(HashMap comMan2searchTypes,
HashMap types) |
static boolean |
matchesDeviceTypes(QNameSet searchTypes,
QNameSet types,
java.lang.String comManId) |
boolean |
matchesDeviceTypes(QNameSet deviceTypes,
java.lang.String comManId) |
static boolean |
matchesScopes(ScopeSet searchScopes,
ScopeSet deviceScopes,
java.lang.String comManId) |
boolean |
matchesScopes(ScopeSet deviceScopes,
java.lang.String comManId) |
boolean |
matchesSearch(MessageWithDiscoveryData message,
java.lang.String comManId)
Checks if the device sending the discovery message matches the searched device port types and
scopes, which are part of the searchParameter.
|
boolean |
matchesSearchMap(HashMap inDiscoveryDomains) |
static boolean |
matchesSearchMap(HashMap comMan2searchSet,
HashSet localComManIdsToAccept,
HashMap inDiscoveryDomains) |
static boolean |
matchesSearchMap(HashMap comMan2searchSet,
HashSet localComManIdsToAccept,
ProtocolInfo protocolInfo,
DataStructure outgoingDiscoveryInfos) |
boolean |
matchesSearchMap(ProtocolInfo protocolInfo,
DataStructure outgoingDiscoveryInfos) |
boolean |
matchesServiceTypes(HashMap comMan2inTypes) |
static boolean |
matchesServiceTypes(HashMap searchTypes,
HashMap serviceTypes) |
static boolean |
matchesServiceTypes(QNameSet searchTypes,
QNameSet serviceTypes,
java.lang.String comManId) |
boolean |
matchesServiceTypes(QNameSet inTypes,
java.lang.String comManId) |
void |
removeComManIdForLocalSearch(java.lang.String comManId) |
void |
setCredentialInfoForLocalSearch(CredentialInfo credentialInfoForLocalSearch)
Sets the credentialInfo to use for local search.
|
void |
setDeviceTypes(QNameSet deviceTypes,
java.lang.String comManId)
Sets device port types of device to discover.
|
void |
setExceptRemoteSearch(boolean exceptRemoteSearch) |
void |
setReferenceObject(java.lang.Object referenceObject)
Sets reference object.
|
void |
setScopes(ProbeScopeSet scopes)
Sets list of scopes of device to discover.
|
void |
setSearchSet(DataStructure searchSet) |
void |
setSearchSet(DataStructure searchSet,
java.lang.String comManId)
Sets the search map for the discovery process.
|
void |
setServiceTypes(QNameSet serviceTypes,
java.lang.String comManId)
Sets service port types of service to discover.
|
java.lang.String |
toString() |
public static final org.ws4d.java.types.SearchParameter.EmptySearchParameter EMPTY_SEARCH_PARAMETER
public SearchParameter()
public SearchParameter(DiscoveryBinding binding)
public static boolean matchesDeviceTypes(QNameSet searchTypes, QNameSet types, java.lang.String comManId)
public static boolean matchesDeviceTypes(HashMap comMan2searchTypes, HashMap types)
public static boolean matchesScopes(ScopeSet searchScopes, ScopeSet deviceScopes, java.lang.String comManId)
public static boolean matchesSearchMap(HashMap comMan2searchSet, HashSet localComManIdsToAccept, HashMap inDiscoveryDomains)
public static boolean matchesSearchMap(HashMap comMan2searchSet, HashSet localComManIdsToAccept, ProtocolInfo protocolInfo, DataStructure outgoingDiscoveryInfos)
public static boolean matchesServiceTypes(QNameSet searchTypes, QNameSet serviceTypes, java.lang.String comManId)
public static boolean matchesServiceTypes(HashMap searchTypes, HashMap serviceTypes)
public boolean hasDeviceCriteria()
public boolean hasServiceCriteria()
public boolean matchesDeviceTypes(HashMap otherComMan2deviceType)
public boolean matchesDeviceTypes(QNameSet deviceTypes, java.lang.String comManId)
public boolean matchesScopes(ScopeSet deviceScopes, java.lang.String comManId)
public boolean matchesSearchMap(HashMap inDiscoveryDomains)
public boolean matchesSearchMap(ProtocolInfo protocolInfo, DataStructure outgoingDiscoveryInfos)
public boolean matchesServiceTypes(HashMap comMan2inTypes)
public boolean matchesServiceTypes(QNameSet inTypes, java.lang.String comManId)
public boolean matchesSearch(MessageWithDiscoveryData message, java.lang.String comManId)
message - Discovery message of device.true - if both the given device port types and scopes are part of the device.public CredentialInfo getCredentialInfoForLocalSearch()
public void setCredentialInfoForLocalSearch(CredentialInfo credentialInfoForLocalSearch)
credentialInfoForLocalSearch - the credentialInfo to setpublic HashMap getSearchMap()
SearchParameter.SearchSetEntry elements. Each element determines one or more technologies
and physical or virtual interfaces of the local machine within those technologies, which should
be carried out over a search/discovery process.public boolean isExceptRemoteSearch()
public void setExceptRemoteSearch(boolean exceptRemoteSearch)
public void addComManIdForLocalSearch(java.lang.String comManId)
public void removeComManIdForLocalSearch(java.lang.String comManId)
public void allowAllForLocalSearch()
public void denyAllForLocalSearch()
public boolean isLocalSearch()
public void setSearchSet(DataStructure searchSet, java.lang.String comManId)
searchMap - the search map to use, if null, a default search map will be usedpublic void setSearchSet(DataStructure searchSet)
public HashMap getComMan2DeviceTypes()
public QNameSet getDeviceTypes(java.lang.String comManId)
public void setDeviceTypes(QNameSet deviceTypes, java.lang.String comManId)
deviceTypes - device port types.public ProbeScopeSet getScopes()
public void setScopes(ProbeScopeSet scopes)
scopes - list of scopes.public QNameSet getServiceTypes(java.lang.String comManId)
public HashMap getComMan2ServiceTypes()
public void setServiceTypes(QNameSet serviceTypes, java.lang.String comManId)
serviceTypes - service port types.public java.lang.Object getReferenceObject()
public void setReferenceObject(java.lang.Object referenceObject)
referenceObject - public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object