Class ResponseEnvelope

java.lang.Object
eu.europa.esig.dss.model.http.ResponseEnvelope

public class ResponseEnvelope extends Object
This class contains information retrieved from a Response (HTTP, HTTPS, etc.)
  • Constructor Details

    • ResponseEnvelope

      public ResponseEnvelope()
      Default constructor
    • ResponseEnvelope

      public ResponseEnvelope(byte[] responseBody)
      Constructor with response message body provided
      Parameters:
      responseBody - byte array containing the message body
  • Method Details

    • getResponseBody

      public byte[] getResponseBody()
      Gets the response message body
      Returns:
      byte array
    • setResponseBody

      public void setResponseBody(byte[] responseBody)
      Sets the response message body
      Parameters:
      responseBody - byte array
    • getHeaders

      public Map<String, List<String>> getHeaders()
      Gets the response headers (e.g. HTTP(S) headers)
      Returns:
      a map of String header names and their values
    • setHeaders

      public void setHeaders(Map<String, List<String>> headers)
      Sets the response headers (e.g. HTTP(S) headers)
      Parameters:
      headers - a map of String header names and their values
    • getTLSCertificates

      public Certificate[] getTLSCertificates()
      Gets the TLS/SSL certificates used by the remote server to establish a secure connection (e.g. for HTTPS)
      Returns:
      array of Certificates
    • setTLSCertificates

      public void setTLSCertificates(Certificate[] tlsCertificates)
      Sets the TLS/SSL certificates used by the remote server to establish a secure connection (e.g. for HTTPS)
      Parameters:
      tlsCertificates - array of Certificates