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.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
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.

Kohsuke Kawaguchi
public @interface WebMethod {
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.

    String[] name();
New to GrepCode? Check out our FAQ X