Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2004-2010 Oracle Corporation. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: Kohsuke Kawaguchi /
package org.kohsuke.stapler;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

Indicates that this parameter is injected from HTTP query parameter.

Kohsuke Kawaguchi
public @interface QueryParameter {
query parameter name. By default, name of the parameter.
    String value() default "";

If true, request without this header will be rejected.
    boolean required() default false;

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.
    boolean fixEmpty() default false;
New to GrepCode? Check out our FAQ X