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

burp.api.montoya.http.sessions.ActionResult 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.http.sessions;

import burp.api.montoya.core.Annotations;
import burp.api.montoya.http.message.requests.HttpRequest;

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

/**
 * An instance of this interface should be returned by {@link SessionHandlingAction#performAction(SessionHandlingActionData)}.
 */
public interface ActionResult
{
    /**
     * @return The HTTP request.
     */
    HttpRequest request();

    /**
     * @return The annotations.
     */
    Annotations annotations();

    /**
     * Create a new instance of {@code ActionResult}.
* Annotations will not be modified. * * @param request An HTTP request. * * @return A new {@code ActionResult} instance. */ static ActionResult actionResult(HttpRequest request) { return FACTORY.actionResult(request); } /** * Create a new instance of {@code ActionResult}. * * @param request An HTTP request. * @param annotations modified annotations. * * @return A new {@code ActionResult} instance. */ static ActionResult actionResult(HttpRequest request, Annotations annotations) { return FACTORY.actionResult(request, annotations); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy