com.sun.slamd.common.http.util
Class HttpResponse

java.lang.Object
  extended by com.sun.slamd.common.http.util.HttpResponse

public class HttpResponse
extends java.lang.Object

This class holds information about an HTTP response.

Author:
cmort

Constructor Summary
HttpResponse()
          Creates a new instance of HttpResponse.
 
Method Summary
 int getAuthErrorCode()
          Getter for property authErrorCode.
 java.util.Vector getCookies()
          Retrieves the cookies for this response.
 java.util.Enumeration getCookiesEnumeration()
          Getter for property cookies.
 byte[] getLocation()
          Getter for property location.
 int getStatus()
          Getter for property status.
 boolean hasCookies()
          Indicates whether the response has one or more cookies.
 java.lang.String printCookies()
          Retrieves a string representation of the cookies for this response.
 void setAuthErrorCode(int authErrorCode)
          Setter for property authErrorCode.
 void setCookies(java.util.Vector cookies)
          Setter for property cookies.
 void setLocation(byte[] location)
          Setter for property location.
 void setStatus(int status)
          Setter for property status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponse

public HttpResponse()
Creates a new instance of HttpResponse.

Method Detail

getStatus

public int getStatus()
Getter for property status.

Returns:
Value of property status.

setStatus

public void setStatus(int status)
Setter for property status.

Parameters:
status - New value of property status.

getLocation

public byte[] getLocation()
Getter for property location.

Returns:
Value of property location.

setLocation

public void setLocation(byte[] location)
Setter for property location.

Parameters:
location - New value of property location.

getCookiesEnumeration

public java.util.Enumeration getCookiesEnumeration()
Getter for property cookies.

Returns:
Value of property cookies.

getCookies

public java.util.Vector getCookies()
Retrieves the cookies for this response.

Returns:
The cookies for this response.

printCookies

public java.lang.String printCookies()
Retrieves a string representation of the cookies for this response.

Returns:
A string representation of the cookies for this response.

setCookies

public void setCookies(java.util.Vector cookies)
Setter for property cookies.

Parameters:
cookies - New value of property cookies.

hasCookies

public boolean hasCookies()
Indicates whether the response has one or more cookies.

Returns:
true if the response has one or more cookies, or false if not.

getAuthErrorCode

public int getAuthErrorCode()
Getter for property authErrorCode.

Returns:
Value of property authErrorCode.

setAuthErrorCode

public void setAuthErrorCode(int authErrorCode)
Setter for property authErrorCode.

Parameters:
authErrorCode - New value of property authErrorCode.