Class PlanMatchingContext
-
- All Implemented Interfaces:
public class PlanMatchingContextContext to store data for use in executing an execution plan.
-
-
Field Summary
Fields Modifier and Type Field Description private final V4Pactpactprivate final V4Interactioninteractionprivate final MatchingConfigurationconfigprivate final MatchingContextmatchingContext
-
Constructor Summary
Constructors Constructor Description PlanMatchingContext(V4Pact pact, V4Interaction interaction, MatchingConfiguration config, MatchingContext matchingContext)PlanMatchingContext(V4Pact pact, V4Interaction interaction, MatchingConfiguration config)
-
Method Summary
Modifier and Type Method Description final V4PactgetPact()Pact the plan is for final V4InteractiongetInteraction()Interaction that the plan id for final MatchingConfigurationgetConfig()Configuration final MatchingContextgetMatchingContext()Matching rules to use final BooleanmatcherIsDefined(DocPath path)If there is a matcher defined at the path in this context final MatchingRuleGroupselectBestMatcher(DocPath path)Select the best matcher to use for the given path final MatchingRuleGroupselectBestMatcher(DocPath path1, DocPath path2)Select the best matcher taking into account two paths final BooleantypeMatcherDefined(DocPath path)If there is a type matcher defined at the path in this context final PlanMatchingContextforMethod()Creates a clone of this context, but with the matching rules set for the Request Method final PlanMatchingContextforPath()Creates a clone of this context, but with the matching rules set for the Request Path final PlanMatchingContextforQuery()Creates a clone of this context, but with the matching rules set for the Request Query Parameters final PlanMatchingContextforHeaders()Creates a clone of this context, but with the matching rules set for the Request Headers final PlanMatchingContextforBody()Creates a clone of this context, but with the matching rules set for the Request Body final PlanMatchingContextforResponseStatus()Creates a clone of this context, but with the matching rules set for the Response Status final PlanMatchingContextforResponseHeaders()Creates a clone of this context, but with the matching rules set for the Response Headers final PlanMatchingContextforResponseBody()Creates a clone of this context, but with the matching rules set for the Response Body final PlanMatchingContextforMessageContents()Creates a clone of this context, but with the matching rules set for the Message Contents (body) final PlanMatchingContextforMessageMetadata()Creates a clone of this context, but with the matching rules set for the Message Metadata -
-
Constructor Detail
-
PlanMatchingContext
PlanMatchingContext(V4Pact pact, V4Interaction interaction, MatchingConfiguration config, MatchingContext matchingContext)
-
PlanMatchingContext
PlanMatchingContext(V4Pact pact, V4Interaction interaction, MatchingConfiguration config)
-
-
Method Detail
-
getPact
final V4Pact getPact()
Pact the plan is for
-
getInteraction
final V4Interaction getInteraction()
Interaction that the plan id for
-
getConfig
final MatchingConfiguration getConfig()
Configuration
-
getMatchingContext
final MatchingContext getMatchingContext()
Matching rules to use
-
matcherIsDefined
final Boolean matcherIsDefined(DocPath path)
If there is a matcher defined at the path in this context
-
selectBestMatcher
final MatchingRuleGroup selectBestMatcher(DocPath path)
Select the best matcher to use for the given path
-
selectBestMatcher
final MatchingRuleGroup selectBestMatcher(DocPath path1, DocPath path2)
Select the best matcher taking into account two paths
-
typeMatcherDefined
final Boolean typeMatcherDefined(DocPath path)
If there is a type matcher defined at the path in this context
-
forMethod
final PlanMatchingContext forMethod()
Creates a clone of this context, but with the matching rules set for the Request Method
-
forPath
final PlanMatchingContext forPath()
Creates a clone of this context, but with the matching rules set for the Request Path
-
forQuery
final PlanMatchingContext forQuery()
Creates a clone of this context, but with the matching rules set for the Request Query Parameters
-
forHeaders
final PlanMatchingContext forHeaders()
Creates a clone of this context, but with the matching rules set for the Request Headers
-
forBody
final PlanMatchingContext forBody()
Creates a clone of this context, but with the matching rules set for the Request Body
-
forResponseStatus
final PlanMatchingContext forResponseStatus()
Creates a clone of this context, but with the matching rules set for the Response Status
-
forResponseHeaders
final PlanMatchingContext forResponseHeaders()
Creates a clone of this context, but with the matching rules set for the Response Headers
-
forResponseBody
final PlanMatchingContext forResponseBody()
Creates a clone of this context, but with the matching rules set for the Response Body
-
forMessageContents
final PlanMatchingContext forMessageContents()
Creates a clone of this context, but with the matching rules set for the Message Contents (body)
-
forMessageMetadata
final PlanMatchingContext forMessageMetadata()
Creates a clone of this context, but with the matching rules set for the Message Metadata
-
-
-
-