org.mockserver.model.ParameterStyle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
package org.mockserver.model;
public enum ParameterStyle {
// PATH
SIMPLE("\\,"),
SIMPLE_EXPLODED("\\,"),
LABEL("\\,"),
LABEL_EXPLODED("\\."),
MATRIX("\\,"),
MATRIX_EXPLODED(";="),
// QUERY
FORM_EXPLODED(""),
FORM("\\,"),
SPACE_DELIMITED_EXPLODED(""),
SPACE_DELIMITED("(%20)|\\s|\\+"),
PIPE_DELIMITED_EXPLODED(""),
PIPE_DELIMITED("\\|"),
DEEP_OBJECT("");
private final String regex;
private final boolean exploded;
ParameterStyle(String regex) {
this.regex = regex;
this.exploded = !regex.isEmpty();
}
public String getRegex() {
return regex;
}
public boolean isExploded() {
return exploded;
}
@Override
public String toString() {
return name() + "(" + regex + "," + Boolean.toString(exploded) + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy