Class CoreContentMatcherAdapter

  • All Implemented Interfaces:
    io.pact.plugins.jvm.core.CoreContentMatcher

    
    public final class CoreContentMatcherAdapter
     implements CoreContentMatcher
                        

    Adapts a native ContentMatcher so it can be registered as a host-provided ("core") content matcher capability (pact-plugins proposal 009), letting a plugin delegate whole-content-type matching back to this framework instead of reproducing the logic itself. Registered against CoreCapabilityRegistry by MatchingConfig.registerCoreCapabilities.

    There is no field-level equivalent yet: that needs proposal 006's field-level operation shape, which the plugin driver does not implement yet.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Plugin.CompareContentsResponse compareContents(Plugin.CompareContentsRequest request)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CoreContentMatcherAdapter

        CoreContentMatcherAdapter(ContentMatcher matcher)
    • Method Detail

      • compareContents

         Plugin.CompareContentsResponse compareContents(Plugin.CompareContentsRequest request)