Jakarta RESTful Web Services / JAX-RS client filter integration for Allure Java.
Use this module when your tests use a Jakarta RESTful Web Services client and you want request and response details to appear in Allure Report.
- Allure Java 3.x requires Java 17 or newer.
- This module targets the
jakarta.ws.rsnamespace. - The current build validates against Jakarta RESTful Web Services API 4.0.0.
Gradle:
dependencies {
testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
testImplementation("io.qameta.allure:allure-jax-rs")
}Maven, with allure-bom imported in dependency management:
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-jax-rs</artifactId>
<scope>test</scope>
</dependency>Register io.qameta.allure.jaxrs.AllureJaxRs as both a client request and client response filter.
Client client = ClientBuilder.newClient()
.register(new AllureJaxRs()
.configureHttpExchange(exchange -> exchange.redactHeader("Authorization")));- Request method, URI, headers, and entity string.
- Response status, headers, body, and timing.
- Redacted credentials and any custom redaction/truncation rules you configure.
The artifact name remains allure-jax-rs because Jakarta RESTful Web Services still uses the JAX-RS terminology for the API and programming model.