Package Services.ResponseAnalyzer
Class AtomicObject
java.lang.Object
Services.ResponseAnalyzer.AtomicObject
- All Implemented Interfaces:
Serializable
Represents a single atomic value extracted from an HTTP response.
An atomic object is a primitive value (string) with an associated name and optionally an XPath expression identifying its location in a structured response. It can also represent values originating from a Set-Cookie header.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAtomicObject(String value, String name, String xpath) Constructs an AtomicObject with the given value, name, and XPath.AtomicObject(String value, String name, String xpath, boolean from_set_cookie) Constructs an AtomicObject with the given value, name, XPath, and Set-Cookie origin flag. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetName()getValue()getXpath()voidsetFrom_set_cookie(boolean from_set_cookie) Sets the from_set_cookie flagvoidSets the name of the atomic objectvoidSets the value of the atomic objectvoidSets the XPath of the atomic objecttoString()
-
Field Details
-
value
-
name
-
xpath
-
from_set_cookie
@SerializedName("from_set_cookie") public boolean from_set_cookie
-
-
Constructor Details
-
AtomicObject
Constructs an AtomicObject with the given value, name, and XPath.- Parameters:
value- the value of the atomic objectname- the name of the atomic objectxpath- the XPath identifying the location of this value in the response
-
AtomicObject
Constructs an AtomicObject with the given value, name, XPath, and Set-Cookie origin flag.- Parameters:
value- the value of the atomic objectname- the name of the atomic objectxpath- the XPath identifying the location of this value in the responsefrom_set_cookie- true if this value comes from a Set-Cookie header; false otherwise
-
-
Method Details
-
getValue
- Returns:
- the value of the atomic object
-
getName
- Returns:
- the name of the atomic object
-
getXpath
- Returns:
- the XPath of the atomic object
-
getFromSetCookie
public boolean getFromSetCookie()- Returns:
- true if the object originates from a Set-Cookie header
-
setValue
Sets the value of the atomic object -
setName
Sets the name of the atomic object -
setXpath
Sets the XPath of the atomic object -
setFrom_set_cookie
public void setFrom_set_cookie(boolean from_set_cookie) Sets the from_set_cookie flag -
toString
-
equals
-