com.testingsyndicate.jms.responder.matcher.Matcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jms-responder-core Show documentation
Show all versions of jms-responder-core Show documentation
A stub for JMS Request/Reply
package com.testingsyndicate.jms.responder.matcher;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.testingsyndicate.jms.responder.model.Request;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type")
@JsonSubTypes(
{
@Type(value = BodyMatcher.class, name = "body"),
@Type(value = QueueMatcher.class, name = "queue"),
@Type(value = XmlMatcher.class, name = "xml"),
@Type(value = AnyMatcher.class, name = "any"),
@Type(value = AllMatcher.class, name = "all")
}
)
public interface Matcher {
boolean matches(Request request);
}