Apache CXF API

org.apache.cxf.jaxrs.ext
Annotation Type Nullable


@Target(value={PARAMETER,METHOD})
@Retention(value=RUNTIME)
public @interface Nullable

Some JAX-RS providers, notably JAXB-based ones return 400 when the incoming payload is empty. This annotation can be attached to a method parameter identifying a request body in order to get a null injected instead


Apache CXF API

Apache CXF