public class AgentFilterServiceImpl extends java.lang.Object implements AgentFilterService
AgentFilterService
which delegates iterates through an ordered list of
AgentMetadataInspector
. Giving them the chance to accept and reject agents based on their provided
metadata. This filter accepts by default if none of the inspectors rejected.Constructor and Description |
---|
AgentFilterServiceImpl(java.util.List<AgentMetadataInspector> agentMetadataInspectorList)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
InspectionReport |
inspectAgentMetadata(@Valid AgentClientMetadata agentClientMetadata)
Inspect agent metadata and decide to accept or reject it.
|
public AgentFilterServiceImpl(java.util.List<AgentMetadataInspector> agentMetadataInspectorList)
agentMetadataInspectorList
- the list of inspectors to consultpublic InspectionReport inspectAgentMetadata(@Valid @Valid AgentClientMetadata agentClientMetadata)
AgentMetadataInspector
and stops at the first one
that rejects. If none rejects, then the client is accepted.inspectAgentMetadata
in interface AgentFilterService
agentClientMetadata
- the agent client metadata