Package io.qameta.allure.httpclient5
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
ConstructorsConstructorDescriptionAllureHttpClient5Response(io.qameta.allure.attachment.AttachmentRenderer<io.qameta.allure.attachment.AttachmentData> renderer, io.qameta.allure.attachment.AttachmentProcessor<io.qameta.allure.attachment.AttachmentData> processor) AllureHttpClient5Response(String templateName) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(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.
-
Constructor Details
-
AllureHttpClient5Response
public AllureHttpClient5Response() -
AllureHttpClient5Response
-
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:
processin interfaceorg.apache.hc.core5.http.HttpResponseInterceptor- Parameters:
response- the HTTP responseentity- the entity details, may be null for no response body responsescontext- the HTTP context- Throws:
IOException- if an I/O error occurs
-