Package org.mockserver.llm
Class IsolationSource
java.lang.Object
org.mockserver.llm.IsolationSource
Describes where to extract the isolation key from an inbound HTTP request
for per-session conversation state isolation.
Usage:
isolateBy(IsolationSource.header("x-session-id"))
isolateBy(IsolationSource.queryParameter("agent"))
isolateBy(IsolationSource.cookie("sid"))
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic IsolationSourcestatic IsolationSourceDecode an isolation source from its encoded string form.encode()Encode the isolation source as a string for embedding in scenario names.booleangetKind()getName()inthashCode()static IsolationSourcestatic IsolationSourcequeryParameter(String name) toString()
-
Method Details
-
header
-
queryParameter
-
cookie
-
getKind
-
getName
-
encode
Encode the isolation source as a string for embedding in scenario names. Format: "kind:name" (e.g. "header:x-session-id"). -
decode
Decode an isolation source from its encoded string form.- Parameters:
encoded- the encoded string (e.g. "header:x-session-id")- Returns:
- the decoded IsolationSource, or null if the format is invalid
-
equals
-
hashCode
public int hashCode() -
toString
-