All Downloads are FREE. Search and download functionalities are using the official Maven repository.

burp.api.montoya.persistence.PersistedList Maven / Gradle / Ivy

There is a newer version: 2024.12
Show newest version
/*
 * Copyright (c) 2022-2023. PortSwigger Ltd. All rights reserved.
 *
 * This code may be used to extend the functionality of Burp Suite Community Edition
 * and Burp Suite Professional, provided that this usage does not violate the
 * license terms for those products.
 */

package burp.api.montoya.persistence;

import burp.api.montoya.core.ByteArray;
import burp.api.montoya.http.message.HttpRequestResponse;
import burp.api.montoya.http.message.requests.HttpRequest;
import burp.api.montoya.http.message.responses.HttpResponse;

import java.util.List;

import static burp.api.montoya.internal.ObjectFactoryLocator.FACTORY;

/**
 * List that has been persisted in the project.
 * The methods of this list operate on the underlying persisted data.
 */
public interface PersistedList extends List
{
    /**
     * Create a new instance of {@link PersistedList} that contains instances of {@link Boolean}.
     *
     * @return A new {@link PersistedList} instance.
     */
    static PersistedList persistedBooleanList()
    {
        return FACTORY.persistedBooleanList();
    }

    /**
     * Create a new instance of {@link PersistedList} that contains instances of {@link Short}.
     *
     * @return A new {@link PersistedList} instance.
     */
    static PersistedList persistedShortList()
    {
        return FACTORY.persistedShortList();
    }

    /**
     * Create a new instance of {@link PersistedList} that contains instances of {@link Integer}.
     *
     * @return A new {@link PersistedList} instance.
     */
    static PersistedList persistedIntegerList()
    {
        return FACTORY.persistedIntegerList();
    }

    /**
     * Create a new instance of {@link PersistedList} that contains instances of {@link Long}.
     *
     * @return A new {@link PersistedList} instance.
     */
    static PersistedList persistedLongList()
    {
        return FACTORY.persistedLongList();
    }

    /**
     * Create a new instance of {@link PersistedList} that contains instances of {@link String}.
     *
     * @return A new {@link PersistedList} instance.
     */
    static PersistedList persistedStringList()
    {
        return FACTORY.persistedStringList();
    }

    /**
     * Create a new instance of {@link PersistedList} that contains instances of {@link ByteArray}.
     *
     * @return A new {@link PersistedList} instance.
     */
    static PersistedList persistedByteArrayList()
    {
        return FACTORY.persistedByteArrayList();
    }

    /**
     * Create a new instance of {@link PersistedList} that contains instances of {@link HttpRequest}.
     *
     * @return A new {@link PersistedList} instance.
     */
    static PersistedList persistedHttpRequestList()
    {
        return FACTORY.persistedHttpRequestList();
    }

    /**
     * Create a new instance of {@link PersistedList} that contains instances of {@link HttpResponse}.
     *
     * @return A new {@link PersistedList} instance.
     */
    static PersistedList persistedHttpResponseList()
    {
        return FACTORY.persistedHttpResponseList();
    }

    /**
     * Create a new instance of {@link PersistedList} that contains instances of {@link HttpRequestResponse}.
     *
     * @return A new {@link PersistedList} instance.
     */
    static PersistedList persistedHttpRequestResponseList()
    {
        return FACTORY.persistedHttpRequestResponseList();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy