org.codehaus.enunciate.jaxrs
Annotation Type ResponseCode


@Retention(value=RUNTIME)
@Target(value={})
public @interface ResponseCode

Generic holder for a response code. Response codes are used as both the HTTP status response and as HTTP Warnings.

Author:
Ryan Heaton

Required Element Summary
 int code
          The code.
 java.lang.String condition
          The condition under which the code is supplied.
 
Optional Element Summary
 ResponseHeader[] additionalHeaders
           
 

Element Detail

code

public abstract int code
The code.

Returns:
The code.

condition

public abstract java.lang.String condition
The condition under which the code is supplied.

Returns:
The condition under which the code is supplied.

additionalHeaders

public abstract ResponseHeader[] additionalHeaders
Default:
{}