Enhydra 5.1 API

com.lutris.http.debug
Interface DebugResponse

All Known Implementing Classes:
ResponseRecord, ServletHttpPresentationResponse

public interface DebugResponse

Object used to access HTTP response data for debugging purposes.

Since:
LBS1.7
Version:
$Revision: 1.1 $
Author:
Paul Morgan

Method Summary
 int getContentLength()
          Returns the size of the response entity data, or -1 if not known.
 java.lang.String getContentType()
          Returns the Internet Media Type of the response entity data, or null if not known.
 javax.servlet.http.Cookie[] getCookies()
          Returns an array of cookies to be set by this response.
 java.lang.String getHeader(java.lang.String name)
          Returns the values of the specified header for the response as an array of strings, or a 0 length array if the named header does not exist.
 java.util.Enumeration getHeaderNames()
          Returns an array of strings representing the header names for this response.
 java.lang.String getResponseData()
          Returns the data written to the output stream associated with this request, or null if that data was not kept.
 int getStatusCode()
          Returns the status code for the response.
 java.lang.String getStatusMessage()
          Returns the status message for the response.
 int getTotalBytes()
          Returns the number of bytes associated with the response.
 

Method Detail

getContentLength

public int getContentLength()
Returns the size of the response entity data, or -1 if not known.


getContentType

public java.lang.String getContentType()
Returns the Internet Media Type of the response entity data, or null if not known.


getStatusCode

public int getStatusCode()
Returns the status code for the response.


getStatusMessage

public java.lang.String getStatusMessage()
Returns the status message for the response.


getCookies

public javax.servlet.http.Cookie[] getCookies()
Returns an array of cookies to be set by this response.

Returns:
The array of cookies found in this response.

getHeader

public java.lang.String getHeader(java.lang.String name)
Returns the values of the specified header for the response as an array of strings, or a 0 length array if the named header does not exist.

Parameters:
name - the case-insensitive header field name

getHeaderNames

public java.util.Enumeration getHeaderNames()
Returns an array of strings representing the header names for this response. This does not have return cookies - use getCookies().


getTotalBytes

public int getTotalBytes()
Returns the number of bytes associated with the response.


getResponseData

public java.lang.String getResponseData()
Returns the data written to the output stream associated with this request, or null if that data was not kept. Due to the potential size of the data, this is an optional feature.


Enhydra 5.1 API