Package org.zaproxy.clientapi.core
Class ApiResponseSet
java.lang.Object
org.zaproxy.clientapi.core.ApiResponse
org.zaproxy.clientapi.core.ApiResponseSet
-
Constructor Summary
ConstructorsConstructorDescriptionApiResponseSet(String name, String[] attributes) Deprecated.(1.1.0) Unused, there's no replacement.ApiResponseSet(String name, Map<String, ApiResponse> values) ApiResponseSet(Node node) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) Deprecated.(1.1.0) UsegetStringValue(String)orgetValue(String)instead.String[]Deprecated.(1.1.0) Unused, there's no replacement.getKeys()Gets the keys of the values.getStringValue(String key) Gets the value for the givenkeyasString.Gets the value for the givenkey.Gets the values.Gets aMapwith the keys and values.toString(int indent) Methods inherited from class org.zaproxy.clientapi.core.ApiResponse
getName, setName
-
Constructor Details
-
ApiResponseSet
Deprecated.(1.1.0) Unused, there's no replacement.Constructs anApiResponseSetwith the given name and attributes.- Parameters:
name- the name of the API responseattributes- the attributes
-
ApiResponseSet
-
ApiResponseSet
- Throws:
ClientApiException
-
-
Method Details
-
getAttributes
Deprecated.(1.1.0) Unused, there's no replacement.Gets the attributes.- Returns:
- the attributes, might be
null. - See Also:
-
getAttribute
Deprecated.(1.1.0) UsegetStringValue(String)orgetValue(String)instead.Gets the value for the givenkey.- Parameters:
key- the key of the value- Returns:
- the value, or
nullif no value exists for the givenkey.
-
getValue
Gets the value for the givenkey.- Parameters:
key- the key of the value- Returns:
- the value, or
nullif no value exists for the givenkey. - Since:
- 1.1.0
- See Also:
-
getStringValue
Gets the value for the givenkeyasString.For
ApiResponseElements it returnsits value, for otherApiResponsetypes it returns the conversion toString.- Parameters:
key- the key of the value- Returns:
- the value, or
nullif no value exists for the givenkey. - Since:
- 1.1.0
- See Also:
-
getValuesMap
Gets aMapwith the keys and values.The returned
Mapis unmodifiable, any attempt to modify it will result in anUnsupportedOperationException.- Returns:
- the map with the keys/values, never
null. - Since:
- 1.1.0
-
getKeys
Gets the keys of the values.The returned
Setis unmodifiable, any attempt to modify it will result in anUnsupportedOperationException.- Returns:
- the keys, never
null. - Since:
- 1.1.0
- See Also:
-
getValues
Gets the values.The returned
Collectionis unmodifiable, any attempt to modify it will result in anUnsupportedOperationException.- Returns:
- the values, never
null. - Since:
- 1.1.0
- See Also:
-
toString
- Specified by:
toStringin classApiResponse
-