forked from jbufu/openid4java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpResponse.java
More file actions
47 lines (40 loc) · 1.07 KB
/
HttpResponse.java
File metadata and controls
47 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* 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();
}