Class HeaderMatcher
java.lang.Object
com.niklasarndt.okhttpmock.matchers.PatternMatcher
com.niklasarndt.okhttpmock.matchers.HeaderMatcher
- All Implemented Interfaces:
Matcher
public class HeaderMatcher extends PatternMatcher
-
Field Summary
Fields inherited from class com.niklasarndt.okhttpmock.matchers.PatternMatcher
pattern
-
Constructor Summary
Constructors Constructor Description HeaderMatcher(java.lang.String header, java.util.regex.Pattern pattern)
-
Method Summary
Methods inherited from class com.niklasarndt.okhttpmock.matchers.PatternMatcher
failReason, matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
HeaderMatcher
public HeaderMatcher(java.lang.String header, java.util.regex.Pattern pattern)
-
-
Method Details
-
getText
protected java.lang.String getText(okhttp3.Request request)- Specified by:
getText
in classPatternMatcher
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-