org.kohsuke.stapler
@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface WebMethod
This annotation is assumed to be implicit on every public methods that start with 'do', like 'doFoo' or 'doBar', but you can use this annotation on those methods to assign different names.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String[] |
name
URL names assigned to this method.
|
public abstract java.lang.String[] name
Normally, for doXyz method, the name is xyz, but you can use this to assign multiple names or non-default names. Often useful for using names that contain non-identifier characters.
The same applies to getXyz methods.
Copyright © 2014. All Rights Reserved.