public class PrincipalEndpointContextMatcher extends Object implements EndpointContextMatcher
| Constructor and Description |
|---|
PrincipalEndpointContextMatcher() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Return matcher name.
|
boolean |
isResponseRelatedToRequest(EndpointContext requestContext,
EndpointContext responseContext)
Check, if responses is related to the request.
|
boolean |
isToBeSent(EndpointContext messageContext,
EndpointContext connectorContext)
Check, if message should be sent out using the current endpoint
context of the connector.
|
protected boolean |
matchPrincipals(Principal requestedPrincipal,
Principal availablePrincipal)
Match principals.
|
public String getName()
EndpointContextMatchergetName in interface EndpointContextMatcherpublic boolean isResponseRelatedToRequest(EndpointContext requestContext, EndpointContext responseContext)
EndpointContextMatcherisResponseRelatedToRequest in interface EndpointContextMatcherrequestContext - endpoint context of requestresponseContext - endpoint context of responsepublic boolean isToBeSent(EndpointContext messageContext, EndpointContext connectorContext)
EndpointContextMatcherisToBeSent in interface EndpointContextMatchermessageContext - endpoint context of messageconnectorContext - endpoint context of connectionprotected boolean matchPrincipals(Principal requestedPrincipal, Principal availablePrincipal)
Object.equals(Object) doesn't work.requestedPrincipal - requested principal from requested endpoint
context.availablePrincipal - available principal from available endpoint
contexttrue, if the principals are matching, false,
otherwise.Copyright © 2019 Eclipse Foundation. All rights reserved.