com.sun.ws.rest.api
Annotation Type HttpMethod


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface HttpMethod

Indicates that the annotated Java method should be used to handle HTTP requests. Annotated methods must satisfy the following constraints:

See Also:
Representation, UriParam, QueryParam, MatrixParam, HeaderParam

Optional Element Summary
 java.lang.String value
          Specifies the name of a HTTP method.
 

value

public abstract java.lang.String value
Specifies the name of a HTTP method. E.g. "GET". If not specified the name of the annotated method must begin with one of the method constants (in lowercase). E.g.
 @HttpMethod
 public void deleteSomething()
is equivalent to
 @HttpMethod(DELETE)
 public void deleteSomething()

Default:
""