Apache CXF API

org.apache.cxf.jaxrs.ext.multipart
Annotation Type Multipart


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

Annotate a JAX-RS function parameter to receive data from a multipart 'part'.


Optional Element Summary
 boolean required
          How to handle a missing part.
 String type
          Select the part by MIME type.
 String value
          The name of the MIME part to map to this parameter.
 

value

public abstract String value
The name of the MIME part to map to this parameter. The default is the unnamed default part.

Default:
""

type

public abstract String type
Select the part by MIME type. The default is to match any MIME type.

Default:
"*/*"

required

public abstract boolean required
How to handle a missing part. By default, if no part matches, the MultipartProvider throws a WebApplicationException with status 400. If this option is set to false, the parameter is set to null instead.

Default:
true

Apache CXF API

Apache CXF