Class StateRequestMatcher

  • All Implemented Interfaces:
    com.github.tomakehurst.wiremock.extension.Extension, com.github.tomakehurst.wiremock.matching.NamedValueMatcher<com.github.tomakehurst.wiremock.http.Request>, com.github.tomakehurst.wiremock.matching.ValueMatcher<com.github.tomakehurst.wiremock.http.Request>, StateExtensionMixin

    public class StateRequestMatcher
    extends com.github.tomakehurst.wiremock.matching.RequestMatcherExtension
    implements StateExtensionMixin
    Request matcher for state.

    DO NOT REGISTER directly. Use StateExtension instead.

    See Also:
    StateExtension
    • Field Summary

      • Fields inherited from class com.github.tomakehurst.wiremock.matching.RequestMatcherExtension

        ALWAYS, NEVER
    • Constructor Summary

      Constructors 
      Constructor Description
      StateRequestMatcher​(ContextManager contextManager, com.github.tomakehurst.wiremock.extension.WireMockServices services)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      com.github.tomakehurst.wiremock.matching.MatchResult match​(com.github.tomakehurst.wiremock.http.Request request, com.github.tomakehurst.wiremock.extension.Parameters parameters)  
      • Methods inherited from class com.github.tomakehurst.wiremock.matching.RequestMatcherExtension

        match
      • Methods inherited from class com.github.tomakehurst.wiremock.matching.RequestMatcher

        equals, getExpected, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.tomakehurst.wiremock.extension.Extension

        start, stop
    • Constructor Detail

      • StateRequestMatcher

        public StateRequestMatcher​(ContextManager contextManager,
                                   com.github.tomakehurst.wiremock.extension.WireMockServices services)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface com.github.tomakehurst.wiremock.extension.Extension
        Specified by:
        getName in interface com.github.tomakehurst.wiremock.matching.NamedValueMatcher<com.github.tomakehurst.wiremock.http.Request>
        Overrides:
        getName in class com.github.tomakehurst.wiremock.matching.RequestMatcherExtension
      • match

        public com.github.tomakehurst.wiremock.matching.MatchResult match​(com.github.tomakehurst.wiremock.http.Request request,
                                                                          com.github.tomakehurst.wiremock.extension.Parameters parameters)
        Specified by:
        match in class com.github.tomakehurst.wiremock.matching.RequestMatcherExtension