Class AllureHttpClient5Request

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

public class AllureHttpClient5Request extends Object implements org.apache.hc.core5.http.HttpRequestInterceptor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AllureHttpClient5Request(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.HttpRequest request, org.apache.hc.core5.http.EntityDetails entity, org.apache.hc.core5.http.protocol.HttpContext context)
    Processes the HTTP request 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

    • AllureHttpClient5Request

      public AllureHttpClient5Request()
    • AllureHttpClient5Request

      public AllureHttpClient5Request(String templateName)
    • AllureHttpClient5Request

      public AllureHttpClient5Request(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.HttpRequest request, org.apache.hc.core5.http.EntityDetails entity, org.apache.hc.core5.http.protocol.HttpContext context)
      Processes the HTTP request and adds an attachment to the Allure Attachment processor.
      Specified by:
      process in interface org.apache.hc.core5.http.HttpRequestInterceptor
      Parameters:
      request - the HTTP request
      entity - the entity details
      context - the HTTP context