org.mockserver.model.Cookie 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;
import static org.mockserver.model.NottableOptionalString.optionalString;
import static org.mockserver.model.NottableSchemaString.schemaString;
import static org.mockserver.model.NottableString.string;
/**
* @author jamesdbloom
*/
public class Cookie extends KeyAndValue {
public Cookie(String name, String value) {
super(name, value);
}
public Cookie(NottableString name, NottableString value) {
super(name, value);
}
public static Cookie cookie(String name, String value) {
return new Cookie(name, value);
}
public static Cookie cookie(NottableString name, NottableString value) {
return new Cookie(name, value);
}
public static Cookie schemaCookie(String name, String value) {
return new Cookie(string(name), schemaString(value));
}
public static Cookie optionalCookie(String name, String value) {
return new Cookie(optionalString(name), string(value));
}
public static Cookie optionalCookie(String name, NottableString value) {
return new Cookie(optionalString(name), value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy