Class ResponseEnvelope
java.lang.Object
eu.europa.esig.dss.model.http.ResponseEnvelope
This class contains information retrieved from a Response (HTTP, HTTPS, etc.)
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorResponseEnvelope(byte[] responseBody) Constructor with response message body provided -
Method Summary
Modifier and TypeMethodDescriptionGets the response headers (e.g.byte[]Gets the response message bodyGets the TLS/SSL certificates used by the remote server to establish a secure connection (e.g. for HTTPS)voidsetHeaders(Map<String, List<String>> headers) Sets the response headers (e.g.voidsetResponseBody(byte[] responseBody) Sets the response message bodyvoidsetTLSCertificates(Certificate[] tlsCertificates) Sets the TLS/SSL certificates used by the remote server to establish a secure connection (e.g. for HTTPS)
-
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
-
setHeaders
-
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
Sets the TLS/SSL certificates used by the remote server to establish a secure connection (e.g. for HTTPS)- Parameters:
tlsCertificates- array ofCertificates
-