Interface PersistedObject
public interface PersistedObject
[Professional only] Enables data to be stored and accessed from the Burp project.
Supports HTTP requests, HTTP responses, byte arrays, primitives, lists of all these, and object hierarchies.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve all keys currently mapped forBooleanvalues.Retrieve all keys currently mapped forBooleanLists.Retrieve all keys currently mapped forByteArrayvalues.Retrieve all keys currently mapped forByteArrayLists.byteKeys()Retrieve all keys currently mapped forBytevalues.Retrieve all keys currently mapped forPersistedObjectobjects.voiddeleteBoolean(String key) Removes the mapping of the specified key to theBoolean.voiddeleteBooleanList(String key) Removes the mapping of the specified key to thePersistedListofBoolean.voiddeleteByte(String key) Removes the mapping of the specified key to theByte.voiddeleteByteArray(String key) Removes the mapping of the specified key to theByteArray.voidRemoves the mapping of the specified key to thePersistedListofByteArray.voiddeleteChildObject(String key) Removes the mapping of the specified key to thePersistedObject.voiddeleteHttpRequest(String key) Removes the mapping of the specified key to theHttpRequest.voidRemoves the mapping of the specified key to thePersistedListofHttpRequest.voidRemoves the mapping of the specified key to theHttpRequestResponse.voidRemoves the mapping of the specified key to thePersistedListofHttpRequestResponse.voiddeleteHttpResponse(String key) Removes the mapping of the specified key to theHttpResponse.voidRemoves the mapping of the specified key to thePersistedListofHttpResponse.voiddeleteInteger(String key) Removes the mapping from the specified key to theInteger.voiddeleteIntegerList(String key) Removes the mapping of the specified key to thePersistedListofInteger.voiddeleteLong(String key) Removes the mapping from the specified key to theLong.voiddeleteLongList(String key) Removes the mapping of the specified key to thePersistedListofLong.voiddeleteShort(String key) Removes the mapping from the specified key to theShort.voiddeleteShortList(String key) Removes the mapping of the specified key to thePersistedListofShort.voiddeleteString(String key) Removes the mapping of the specified key to theString.voiddeleteStringList(String key) Removes the mapping of the specified key to thePersistedListofString.getBoolean(String key) Booleanassociated with the specified key, ornullif this map contains no mapping for the key.getBooleanList(String key) PersistedListofBooleanassociated with the specified key, ornullif this map contains no mapping for the key.Byteassociated with the specified key, ornullif this map contains no mapping for the key.getByteArray(String key) ByteArrayassociated with the specified key, ornullif this map contains no mapping for the key.getByteArrayList(String key) PersistedListofByteArrayassociated with the specified key, ornullif this map contains no mapping for the key.getChildObject(String key) PersistedObjectassociated with the specified key, ornullif this map contains no mapping for the key.getHttpRequest(String key) HttpRequestassociated with the specified key, ornullif this map contains no mapping for the keygetHttpRequestList(String key) PersistedListofHttpRequestassociated with the specified key, ornullif this map contains no mapping for the key.HttpRequestResponseassociated with the specified key, ornullif this map contains no mapping for the key.PersistedListofHttpRequestResponseassociated with the specified key, ornullif this map contains no mapping for the key.getHttpResponse(String key) HttpResponseassociated with the specified key, ornullif this map contains no mapping for the keyPersistedListofHttpResponseassociated with the specified key, ornullif this map contains no mapping for the key.getInteger(String key) Integerassociated with the specified key, ornullif this map contains no mapping for the key.getIntegerList(String key) PersistedListofIntegerassociated with the specified key, ornullif this map contains no mapping for the key.Longassociated with the specified key, ornull} if this map contains no mapping for the key.getLongList(String key) PersistedListofLongassociated with the specified key, ornullif this map contains no mapping for the key.Shortassociated with the specified key, ornullif this map contains no mapping for the key.getShortList(String key) PersistedListofShortassociated with the specified key, ornullif this map contains no mapping for the key.Stringassociated with the specified key, ornullif this map contains no mapping for the key.getStringList(String key) PersistedListofStringassociated with the specified key, ornullif this map contains no mapping for the key.Retrieve all keys currently mapped forHttpRequestvalues.Retrieve all keys currently mapped forHttpRequestLists.Retrieve all keys currently mapped forHttpRequestResponsevalues.Retrieve all keys currently mapped forHttpRequestResponseLists.Retrieve all keys currently mapped forHttpResponsevalues.Retrieve all keys currently mapped forHttpResponseLists.Retrieve all keys currently mapped forIntegervalues.Retrieve all keys currently mapped forIntegerLists.longKeys()Retrieve all keys currently mapped forLongvalues.Retrieve all keys currently mapped forLongLists.static PersistedObjectCreate a new instance ofPersistedObject.voidsetBoolean(String key, boolean value) Associates the specifiedbooleanwith the specified key in this map.voidsetBooleanList(String key, PersistedList<Boolean> value) Associates the specifiedPersistedListofBooleanwith the specified key in this map.voidAssociates the specifiedbytewith the specified key in this map This is an optional operation.voidsetByteArray(String key, ByteArray value) Associates the specifiedByteArraywith the specified key in this map.voidsetByteArrayList(String key, PersistedList<ByteArray> value) Associates the specifiedPersistedListofByteArraywith the specified key in this map.voidsetChildObject(String key, PersistedObject childObject) Associates the specifiedPersistedObjectwith the specified key in this map.voidsetHttpRequest(String key, HttpRequest value) Associates the specifiedHttpRequestwith the specified key in this map.voidsetHttpRequestList(String key, PersistedList<HttpRequest> value) Associates the specifiedPersistedListofHttpRequestwith the specified key in this map.voidsetHttpRequestResponse(String key, HttpRequestResponse value) Associates the specifiedHttpRequestResponsewith the specified key in this map.voidsetHttpRequestResponseList(String key, PersistedList<HttpRequestResponse> value) Associates the specifiedPersistedListofHttpRequestResponsewith the specified key in this map.voidsetHttpResponse(String key, HttpResponse value) Associates the specifiedHttpResponsewith the specified key in this map.voidsetHttpResponseList(String key, PersistedList<HttpResponse> value) Associates the specifiedPersistedListofHttpResponsewith the specified key in this map.voidsetInteger(String key, int value) Associates the specifiedintwith the specified key in this map This is an optional operation.voidsetIntegerList(String key, PersistedList<Integer> value) Associates the specifiedPersistedListofIntegerwith the specified key in this map.voidAssociates the specifiedlongwith the specified key in this map.voidsetLongList(String key, PersistedList<Long> value) Associates the specifiedPersistedListofLongwith the specified key in this map.voidAssociates the specified short with the specified key in this map This is an optional operation.voidsetShortList(String key, PersistedList<Short> value) Associates the specifiedPersistedListofShortwith the specified key in this map.voidAssociates the specifiedStringwith the specified key in this map.voidsetStringList(String key, PersistedList<String> value) Associates the specifiedPersistedListofStringwith the specified key in this map.Retrieve all keys currently mapped forShortvalues.Retrieve all keys currently mapped forShortLists.Retrieve all keys currently mapped forStringvalues.Retrieve all keys currently mapped forStringLists.
-
Method Details
-
getChildObject
PersistedObjectassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value to which the specified key is mapped, or
nullif this map contains no mapping for the key.
-
setChildObject
Associates the specifiedPersistedObjectwith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified child object is to be associated.childObject- ThePersistedObjectto be associated with the specified key.
-
deleteChildObject
Removes the mapping of the specified key to thePersistedObject.- Parameters:
key- The key whose mapping is to be deleted.
-
childObjectKeys
Retrieve all keys currently mapped forPersistedObjectobjects.- Returns:
- Set of keys.
-
getString
-
setString
Associates the specifiedStringwith the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteString
-
stringKeys
-
getBoolean
Booleanassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setBoolean
Associates the specifiedbooleanwith the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key. If this value isnullthen any value that is currently mapped to the specified key is removed.
-
deleteBoolean
-
booleanKeys
-
getByte
-
setByte
Associates the specifiedbytewith the specified key in this map This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key. If this value isnullthen any value that is currently mapped to the specified key is removed.
-
deleteByte
-
byteKeys
-
getShort
-
setShort
Associates the specified short with the specified key in this map This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key. If this value isnullthen any value currently mapped to the specified key is removed.
-
deleteShort
-
shortKeys
-
getInteger
Integerassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setInteger
Associates the specifiedintwith the specified key in this map This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key. If this value isnullthen any value that is currently mapped to the specified key is removed.
-
deleteInteger
-
integerKeys
-
getLong
-
setLong
Associates the specifiedlongwith the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key. If this value isnullthen any value that is currently mapped to the specified key is removed.
-
deleteLong
-
longKeys
-
getByteArray
ByteArrayassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setByteArray
Associates the specifiedByteArraywith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteByteArray
-
byteArrayKeys
-
getHttpRequest
HttpRequestassociated with the specified key, ornullif this map contains no mapping for the key- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setHttpRequest
Associates the specifiedHttpRequestwith the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteHttpRequest
Removes the mapping of the specified key to theHttpRequest.- Parameters:
key- The key whose mapping is to be deleted.
-
httpRequestKeys
Retrieve all keys currently mapped forHttpRequestvalues.- Returns:
- Set of keys.
-
getHttpRequestList
PersistedListofHttpRequestassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setHttpRequestList
Associates the specifiedPersistedListofHttpRequestwith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key. The methods of this list operate on the underlying persisted data.
-
deleteHttpRequestList
Removes the mapping of the specified key to thePersistedListofHttpRequest.- Parameters:
key- The key whose mapping is to be deleted.
-
httpRequestListKeys
Retrieve all keys currently mapped forHttpRequestLists.- Returns:
- Set of keys.
-
getHttpResponse
HttpResponseassociated with the specified key, ornullif this map contains no mapping for the key- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setHttpResponse
Associates the specifiedHttpResponsewith the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteHttpResponse
Removes the mapping of the specified key to theHttpResponse.- Parameters:
key- The key whose mapping is to be deleted.
-
httpResponseKeys
Retrieve all keys currently mapped forHttpResponsevalues.- Returns:
- Set of keys.
-
getHttpResponseList
PersistedListofHttpResponseassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setHttpResponseList
Associates the specifiedPersistedListofHttpResponsewith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key. The methods of this list operate on the underlying persisted data.
-
deleteHttpResponseList
Removes the mapping of the specified key to thePersistedListofHttpResponse.- Parameters:
key- The key whose mapping is to be deleted.
-
httpResponseListKeys
Retrieve all keys currently mapped forHttpResponseLists.- Returns:
- Set of keys.
-
getHttpRequestResponse
HttpRequestResponseassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setHttpRequestResponse
Associates the specifiedHttpRequestResponsewith the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteHttpRequestResponse
Removes the mapping of the specified key to theHttpRequestResponse.- Parameters:
key- The key whose mapping is to be deleted.
-
httpRequestResponseKeys
Retrieve all keys currently mapped forHttpRequestResponsevalues.- Returns:
- Set of keys.
-
getHttpRequestResponseList
PersistedListofHttpRequestResponseassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setHttpRequestResponseList
Associates the specifiedPersistedListofHttpRequestResponsewith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key. The methods of this list operate on the underlying persisted data.
-
deleteHttpRequestResponseList
Removes the mapping of the specified key to thePersistedListofHttpRequestResponse.- Parameters:
key- The key whose mapping is to be deleted.
-
httpRequestResponseListKeys
Retrieve all keys currently mapped forHttpRequestResponseLists.- Returns:
- Set of keys.
-
getBooleanList
PersistedListofBooleanassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value to which the specified key is mapped, or
nullif this map contains no mapping for the key.
-
setBooleanList
Associates the specifiedPersistedListofBooleanwith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteBooleanList
Removes the mapping of the specified key to thePersistedListofBoolean.- Parameters:
key- The key whose mapping is to be deleted.
-
booleanListKeys
-
getShortList
PersistedListofShortassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value to which the specified key is mapped, or
nullif this map contains no mapping for the key.
-
setShortList
Associates the specifiedPersistedListofShortwith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteShortList
Removes the mapping of the specified key to thePersistedListofShort.- Parameters:
key- The key whose mapping is to be deleted.
-
shortListKeys
-
getIntegerList
PersistedListofIntegerassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value to which the specified key is mapped, or
nullif this map contains no mapping for the key.
-
setIntegerList
Associates the specifiedPersistedListofIntegerwith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteIntegerList
Removes the mapping of the specified key to thePersistedListofInteger.- Parameters:
key- The key whose mapping is to be deleted.
-
integerListKeys
-
getLongList
PersistedListofLongassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value to which the specified key is mapped, or
nullif this map contains no mapping for the key.
-
setLongList
Associates the specifiedPersistedListofLongwith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteLongList
Removes the mapping of the specified key to thePersistedListofLong.- Parameters:
key- The key whose mapping is to be deleted.
-
longListKeys
-
getStringList
PersistedListofStringassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value to which the specified key is mapped, or
nullif this map contains no mapping for the key.
-
setStringList
Associates the specifiedPersistedListofStringwith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key.
-
deleteStringList
Removes the mapping of the specified key to thePersistedListofString.- Parameters:
key- The key whose mapping is to be deleted.
-
stringListKeys
-
getByteArrayList
PersistedListofByteArrayassociated with the specified key, ornullif this map contains no mapping for the key.- Parameters:
key- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
nullif this map contains no mapping for the key.
-
setByteArrayList
Associates the specifiedPersistedListofByteArraywith the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- The key with which the specified value is to be associated.value- The value to be associated with the specified key. The methods of this list operate on the underlying persisted data.
-
deleteByteArrayList
Removes the mapping of the specified key to thePersistedListofByteArray.- Parameters:
key- The key whose mapping is to be deleted.
-
byteArrayListKeys
-
persistedObject
Create a new instance ofPersistedObject.- Returns:
- A new
PersistedObjectinstance.
-