java - Comma separated strings on a @HeaderParam with JAX-RS -
i've annotated method follow:
@put @path("/categorize") public abstract response categorize( @headerparam(value = "resourceids") list<string> resourceids, list<metainfovaluedto> metainfos);
as can see, i'm trying receive list<string>
. client sends strings using comma separated format: "s1, s2, s3". problem jax-rs deserialize received string in 1 element: resourceids
list<string>
1 element.
can modify behavior? note: i'm using generic java ee libraries in order build jax-rs application: providedcompile 'org.jboss.spec:jboss-javaee-7.0:1.0.3.final'
Comments
Post a Comment