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

org.openid4java.util.HttpResponse Maven / Gradle / Ivy

There is a newer version: 1.0.0.0
Show newest version
/*
 * Copyright 2006-2008 Sxip Identity Corporation
 */
package org.openid4java.util;

import org.apache.http.Header;

/**
 * Container class for HTTP responses.
 *
 * @author Marius Scurtescu, Johnny Bufu
 */
public interface HttpResponse
{
     /**
     * Gets the status code of the HttpResponse.
     */
    public int getStatusCode();

    /**
     * Gets the final URI from where the document was obtained,
     * after following redirects.
     */
    public String getFinalUri();
    /**
     * Gets the first header matching the provided headerName parameter,
     * or null if no header with that name exists.
     */
    public Header getResponseHeader(String headerName);

    /**
     * Gets an array of Header objects for the provided headerName parameter.
     */
    public Header[] getResponseHeaders(String headerName);

    /**
     * Gets the HttpResponse body.
     */
    public String getBody();

    /**
     * Returns true if the HTTP response size exceeded the maximum
     * allowed by the (default) HttpRequestOptions.
     */
    public boolean isBodySizeExceeded();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy