org.kohsuke.stapler
Annotation Type QueryParameter


@Retention(value=RUNTIME)
@Target(value=PARAMETER)
@Documented
public @interface QueryParameter

Indicates that this parameter is injected from HTTP query parameter.

Author:
Kohsuke Kawaguchi

Optional Element Summary
 boolean fixEmpty
          If true, and the actual value of this parameter is "", null is passed instead.
 boolean required
          If true, request without this header will be rejected.
 java.lang.String value
          query parameter name.
 

value

public abstract java.lang.String value
query parameter name. By default, name of the parameter.

Default:
""

required

public abstract boolean required
If true, request without this header will be rejected.

Default:
false

fixEmpty

public abstract boolean fixEmpty
If true, and the actual value of this parameter is "", null is passed instead. This is useful to unify the treatment of the absence of the value vs the empty value.

Default:
false


Copyright © 2011. All Rights Reserved.