public class ResponseErrorHandler extends HttpResponseErrorHandler
StatusMessage
s for TAXII 1.1 when
an error occurs while handling the response from the TAXII server.Constructor and Description |
---|
ResponseErrorHandler() |
Modifier and Type | Method and Description |
---|---|
StatusMessage |
buildSSLErrorStatusMessage(javax.net.ssl.SSLException ex,
java.lang.Object message)
Section 5.2 of the TAXII HTTP Protocol Binding Specification states:
"If TLS is used, problems with the TLS handshake or connection are indicated
using a TLS Alert Protocol Record.
|
StatusMessage |
buildStatusCodeStatusMessage(org.apache.http.client.methods.CloseableHttpResponse response,
java.lang.Object msgIn)
We received a response that was not a 200 (Success)
value.
|
buildResponseStr
public StatusMessage buildStatusCodeStatusMessage(org.apache.http.client.methods.CloseableHttpResponse response, java.lang.Object msgIn)
buildStatusCodeStatusMessage
in class HttpResponseErrorHandler
response
- the HTTP response object.msgIn
- the TAXII message sent to the server.public StatusMessage buildSSLErrorStatusMessage(javax.net.ssl.SSLException ex, java.lang.Object message)
buildSSLErrorStatusMessage
in class HttpResponseErrorHandler