CXF Features

The following elements can appear as child elements of the features element in the http://org.apache.cxf/core, http://org.apache.cxf/jaxws and http://org.apache.cxf/jaxrs namespaces:

Name

Namespace

Description

Implementation Class

Module

addressing

http://cxf.apache.org/ws/addressing

Enables and controls the use of WS-Addressing.

org.apache.cxf.ws.addressing.WSAddressingFeature

cxf-rt-ws-addr

enableColoc

http://cxf.apache.org/binding/coloc

Allowing a direct service invocation to the service registered on the same bus as the client.

org.apache.cxf.binding.coloc.feature.ColocFeature

cxf-rt-bindings-coloc

failover

http://cxf.apache.org/clustering

Feature that allows clients to failover from the initial target endpoint to another, compatible endpoint for the target service.

org.apache.cxf.clustering.FailoverFeature

org.apache.cxf.clustering.CircuitBreakerFailoverFeature

cxf-core

loadDistributor

http://cxf.apache.org/clustering

Failover Feature extension that allows clients to distribute their calls

org.apache.cxf.clustering.LoadDistributorFeature

cxf-core

logging

http://cxf.apache.org/core

Enables to log the content of outbound and inbound messages and faults.

org.apache.cxf.feature.LoggingFeature

cxf-core

policies

http://cxf.apache.org/policy

Enables and controls the use of the WS-Policy Framework. Also serves as an attachment point for Policy and PolicyReference elements.

org.apache.cxf.ws.policy.WSPolicyFeature

cxf-rt-ws-policy

reliableMessaging

http://cxf.apache.org/ws/rm/manager

Enables and controls the use of WS-RM.

org.apache.cxf.ws.rm.feature.RMFeature

cxf-rt-ws-rm

bean

spring/blueprint

Bean Validation 1.1 support

org.apache.cxf.validation.BeanValidationFeature

cxf-core

bean

spring/blueprint

Turns on use of FastInfoset to encode messages. The default is to negotiate the use of FastInfoset with the server as part of the first message, but a "force=true" property can force it, even on the first message.

org.apache.cxf.feature.FastInfosetFeature

cxf-core

bean

spring/blueprint

Allows the use of gzip to compress the messages on the wire. The default is to negotiate the use of FastInfoset with the server as part of the first message, but a "force=true" property can force it, even on the first message.

org.apache.cxf.transport.http.gzip.GZIPFeature

cxf-core

bean

spring/blueprint

Turns on collecting various performance and service invocation statistics values which can be accessed over JMX

org.apache.cxf.management.interceptor.ResponseTimeFeature

cxt-rt-management

bean

spring/blueprint

Uses Stax's XMLStreamReader as data binding

org.apache.cxf.databinding.stax.StaxDataBindingFeature

cxf-core

bean

spring/blueprint

Lightweight inbound and/or outbound transformations.

org.apache.cxf.feature.StaxTransformFeature

cxf-core

beanspring/blueprintEnables the generation of Swagger Spec 1.2 definitions from JAXRS endpoints

org.apache.cxf.jaxrs.swagger.SwaggerFeature

cxf-rt-rs-service-description-swagger
beanspring/blueprintEnables the generation of Swagger Spec 2.0 definitions from JAXRS endpoints

org.apache.cxf.jaxrs.swagger.Swagger2Feature

cxf-rt-rs-service-description-swagger

bean

spring/blueprint

XSLT based inbound and/or outbound transformations.

org.apache.cxf.feature.transform.XSLTFeature

cxf-core

beanspring/blueprintEnables the generation of OpenAPI v3.0 definitions from JAXRS endpointsorg.apache.cxf.jaxrs.openapi.OpenApiFeaturecxf-rt-rs-service-description-openapi-v3
beanspring/blueprintEnables the generation of OpenAPI v3.0 definitions from JAXRS endpointsorg.apache.cxf.jaxrs.microprofile.openapi.OpenApiFeaturecxf-rt-rs-service-description-microprofile-openapi

Where the namespace is spring/blueprint and the name is bean, the child element must be a bean or a reference to a bean of the specified implementation class. In the case of custom beans (namespaces specified) you need not specify or be aware of the implementation class.

Note that the "cxf-core" module is available starting from CXF 3.0.0. In CXF 2.7.x or earlier use "cxf-rt-core".

  • No labels