Class AllureHttpClient5Response

java.lang.Object
io.qameta.allure.httpclient5.AllureHttpClient5Response
All Implemented Interfaces:
org.apache.hc.core5.http.HttpResponseInterceptor

public class AllureHttpClient5Response extends Object implements org.apache.hc.core5.http.HttpResponseInterceptor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AllureHttpClient5Response(io.qameta.allure.attachment.AttachmentRenderer<io.qameta.allure.attachment.AttachmentData> renderer, io.qameta.allure.attachment.AttachmentProcessor<io.qameta.allure.attachment.AttachmentData> processor)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    process(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entity, org.apache.hc.core5.http.protocol.HttpContext context)
    Processes the HTTP response and adds an attachment to the Allure Attachment processor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AllureHttpClient5Response

      public AllureHttpClient5Response()
    • AllureHttpClient5Response

      public AllureHttpClient5Response(String templateName)
    • AllureHttpClient5Response

      public AllureHttpClient5Response(io.qameta.allure.attachment.AttachmentRenderer<io.qameta.allure.attachment.AttachmentData> renderer, io.qameta.allure.attachment.AttachmentProcessor<io.qameta.allure.attachment.AttachmentData> processor)
  • Method Details

    • process

      public void process(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entity, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
      Processes the HTTP response and adds an attachment to the Allure Attachment processor.
      Specified by:
      process in interface org.apache.hc.core5.http.HttpResponseInterceptor
      Parameters:
      response - the HTTP response
      entity - the entity details, may be null for no response body responses
      context - the HTTP context
      Throws:
      IOException - if an I/O error occurs