Package io.qameta.allure.httpclient5
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
ConstructorsConstructorDescriptionAllureHttpClient5Request(io.qameta.allure.attachment.AttachmentRenderer<io.qameta.allure.attachment.AttachmentData> renderer, io.qameta.allure.attachment.AttachmentProcessor<io.qameta.allure.attachment.AttachmentData> processor) AllureHttpClient5Request(String templateName) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(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.
-
Constructor Details
-
AllureHttpClient5Request
public AllureHttpClient5Request() -
AllureHttpClient5Request
-
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:
processin interfaceorg.apache.hc.core5.http.HttpRequestInterceptor- Parameters:
request- the HTTP requestentity- the entity detailscontext- the HTTP context
-