edu.wisc.my.webproxy.beans.http
Interface Response

All Known Implementing Classes:
ResponseImpl

public interface Response

Represents the data retrieved from a HTTP request.

Version:
$Id: Response.java 20993 2010-07-02 19:32:47Z edalquist $
Author:
nramzan

Field Summary
static int SC_MOVED_PERMANENTLY
           
static int SC_MOVED_TEMPORARILY
           
static int SC_SEE_OTHER
           
static int SC_TEMPORARY_REDIRECT
           
 
Method Summary
 void close()
          Releases the HTTP connection made to the remote server
 String getContentType()
          Retrieves the type of the content of response as a String
 IHeader[] getHeaders()
          Retrieves all the response headers as an array of Headers
 String getRequestUrl()
           
 InputStream getResponseBodyAsStream()
          Retrieves the body of the response as an inputstream.
 int getStatusCode()
          Retrieves the status code that is returned when a request is made
 

Field Detail

SC_MOVED_TEMPORARILY

static final int SC_MOVED_TEMPORARILY
See Also:
Constant Field Values

SC_MOVED_PERMANENTLY

static final int SC_MOVED_PERMANENTLY
See Also:
Constant Field Values

SC_SEE_OTHER

static final int SC_SEE_OTHER
See Also:
Constant Field Values

SC_TEMPORARY_REDIRECT

static final int SC_TEMPORARY_REDIRECT
See Also:
Constant Field Values
Method Detail

getResponseBodyAsStream

InputStream getResponseBodyAsStream()
Retrieves the body of the response as an inputstream.

Returns:
is the (@link InputStream) the whole body of the response as a InputStream.

getContentType

String getContentType()
Retrieves the type of the content of response as a String

Returns:
contentType the content type of the response as a String.

getHeaders

IHeader[] getHeaders()
Retrieves all the response headers as an array of Headers

Returns:
headers an array of response headers.

getStatusCode

int getStatusCode()
Retrieves the status code that is returned when a request is made

Returns:
statusCode a numeric number as an int representing the status code

getRequestUrl

String getRequestUrl()

close

void close()
Releases the HTTP connection made to the remote server

Parameters:
none -


Copyright © 2010 Jasig. All Rights Reserved.