users@jsr311.java.net

_at_DefaultValue

From: Dianne Jiao <Dianne.Jiao_at_Sun.COM>
Date: Thu, 03 Apr 2008 10:23:00 -0400

Hi,

When @DefaultValue is set, for example in @QueryParam:

@GET
public String getParam(@QueryParam("stringtest") @DefaultValue("abc") String stringheader){...}


does it mean that stringheader takes the @DefaultValue,
when it is not set

http://host:port/querytest


or when it is set with no value:

http://host:port/querytest?stringtest


or both?

Thanks.

Dianne