org.kohsuke.stapler
Annotation Type WebMethod


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface WebMethod

Indicates that the method is bound to HTTP and used to serve the HTTP request.

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.

Author:
Kohsuke Kawaguchi

Required Element Summary
 java.lang.String[] name
          URL names assigned to this method.
 

Element Detail

name

public abstract java.lang.String[] name
URL names assigned to this method.

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 © 2011. All Rights Reserved.