Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
4.3. API Changes
HTTPConduit class 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The
HTTPConduit class has been made abstract and the code relating to HttpURLConnection has been moved to URLConnectionHTTPConduit. Several method calls of the HTTPConduit class that used to take HttpURLConnection objects have been eliminated. Moreover, most methods taking a URL object now take a URI object instead. The HTTPConduit.WrappedOutputStream class is also now abstract.
If you have implemented custom subclasses of
HTTPConduit, it is probably necessary to refactor them as a subclass URLConnectionHTTPConduit, instead of HTTPConduit.
VersionTransformer and MAPCodec classes 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The
VersionTransformer and MAPCodec classes (used for WS-Addressing) now use the header list on the SoapMessage directly, instead of encoding the WS-Addressing headers as DOM elements. The encode methods have therefore been changed to take a JAXBContext argument, instead of a Marshaller argument. Any custom VersionTransformers will need to be updated.
AbstractFeatures as return value or parameter 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
All methods with an argumnet or return value of type,
org.apache.cxf.feature.AbstractFeatures, have been changed to use org.apache.cxf.feature.Feature instead.
Removed classes 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The following classes have been removed from the JAX-RS library:
org.apache.cxf.jaxrs.client.ResponseReader org.apache.cxf.jaxrs.client.ServerWebApplicationException org.apache.cxf.jaxrs.client.ClientWebApplicationException
org.apache.cxf.jaxrs.client.ResponseReader
org.apache.cxf.jaxrs.client.ServerWebApplicationException
org.apache.cxf.jaxrs.client.ClientWebApplicationException
The first class in the list is not needed with the JAX-RS 2.0
Response class, while the last two classes are replaced by the classes, javax.ws.rs.WebApplicationException and javax.ws.rs.client.ClientException.
Security Token Service (STS) API 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The STS Claims object now takes a
List<String> argument for the claims values, instead of a single String value.
Deprecated APIs 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The following CXF JAX-RS specific extensions have been deprecated and will eventually be removed:
- org.apache.cxf.jaxrs.ext.ParamHandler
- Use the
javax.ws.rs.ext.ParamConverterProviderandjavax.ws.rs.ext.ParamConverterclasses instead. - org.apache.cxf.jaxrs.ext.RequestHandler
- Use the
javax.ws.rs.container.ContainerRequestFilterclass instead. - org.apache.cxf.jaxrs.ext.ResponseHandler
- Use
javax.ws.rs.container.ContainerResponseFilterinstead.