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

com.newrelic.api.agent.ExtendedResponse Maven / Gradle / Ivy

There is a newer version: 8.16.0
Show newest version
/*
 *
 *  * Copyright 2020 New Relic Corporation. All rights reserved.
 *  * SPDX-License-Identifier: Apache-2.0
 *
 */

package com.newrelic.api.agent;

/**
 * A {@link com.newrelic.api.agent.Response} that provides more information for reporting to New Relic. API users should
 * extend this class when wrapping their HTTP responses rather than simply implementing
 * {@link com.newrelic.api.agent.Response} to receive additional functionality.
 *
 * @since 3.41.0
 */
public abstract class ExtendedResponse implements Response {

    /**
     * The Content-Length for this response
     *
     * @return Content-Length (in bytes) for this response
     * @since 3.41.0
     */
    public abstract long getContentLength();
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy