com.rsa.certj.provider.pki

Class HTTPResult

java.lang.Object
  |
  +--com.rsa.certj.provider.pki.HTTPResult

public class HTTPResult
extends Object

This class represents what is returned from sending a message over HTTP.

Note: Objects that are passed to a constructor or method or returned from a method of this class are shared. No copy is made. It is often advisable to make a copy of the object, before passing it to a constructor or method of this class, or after getting it from a method of this class.

Copyright © RSA Security Inc., 1999-2001. All rights reserved.


Constructor Summary

HTTPResult(int status, String[] headers, byte[] message)

Constructs an HTTPResult object.

 

Method Summary

 String[]

getHeaders()

Returns a String array indicating the headers of this object.

 byte[]

getMessage()

Returns a byte array indicating the message of this object.

 int

getStatus()

Returns an int indicating the value of the status of this object.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPResult

public HTTPResult(int status,
                  String[] headers,
                  byte[] message)
Constructs an HTTPResult object. The status included in the HTTP status line received is given in status. The HTTP headers received is given in headers. The message body received is given in message.

Parameters

         status  

An int indicating the HTTP status number found in the HTTP status line received.

         headers  

A String array indicating the HTTP headers received.

         message  

A byte array indicating the message body received.

Method Detail

getStatus

public int getStatus()
Returns an int indicating the value of the status of this object.

Returns

An int indicating the value of the status of this object.

getHeaders

public String[] getHeaders()
Returns a String array indicating the headers of this object.

Returns

A String array indicating the headers of this object.

getMessage

public byte[] getMessage()
Returns a byte array indicating the message of this object.

Returns

A byte array indicating the message of this object.


RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000