public class ConnectionEndpointMerger extends AbstractSingleEntityEndpoint<ConnectionEntity> implements EndpointResponseMerger
| Modifier and Type | Field and Description |
|---|---|
static java.util.regex.Pattern |
CONNECTION_URI_PATTERN |
static java.util.regex.Pattern |
CONNECTIONS_URI_PATTERN |
| Constructor and Description |
|---|
ConnectionEndpointMerger() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(java.net.URI uri,
java.lang.String method)
Indicates whether or not this EndpointResponseMapper can handle mapping responses
for the given URI and HTTP Method
|
protected java.lang.Class<ConnectionEntity> |
getEntityClass() |
protected void |
mergeResponses(ConnectionEntity clientEntity,
java.util.Map<NodeIdentifier,ConnectionEntity> entityMap,
java.util.Set<NodeResponse> successfulResponses,
java.util.Set<NodeResponse> problematicResponses)
Merges the responses from all nodes in the given map into the single given entity
|
mergeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmergepublic static final java.util.regex.Pattern CONNECTIONS_URI_PATTERN
public static final java.util.regex.Pattern CONNECTION_URI_PATTERN
public boolean canHandle(java.net.URI uri,
java.lang.String method)
EndpointResponseMergercanHandle in interface EndpointResponseMergeruri - the URI of the endpointmethod - the HTTP Method used to interact with the endpointtrue if the EndpointResponseMapper can handle mapping responses
for the endpoint described by the given URI and HTTP Methodprotected java.lang.Class<ConnectionEntity> getEntityClass()
getEntityClass in class AbstractSingleEntityEndpoint<ConnectionEntity>protected void mergeResponses(ConnectionEntity clientEntity, java.util.Map<NodeIdentifier,ConnectionEntity> entityMap, java.util.Set<NodeResponse> successfulResponses, java.util.Set<NodeResponse> problematicResponses)
AbstractSingleEntityEndpointmergeResponses in class AbstractSingleEntityEndpoint<ConnectionEntity>clientEntity - the Entity to merge responses intoentityMap - the responses from all nodessuccessfulResponses - the responses from nodes that completed the request successfullyproblematicResponses - the responses from nodes that did not complete the request successfully