org.fusesource.restygwt.client
Annotation Type Options


@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface Options


Optional Element Summary
 Class<? extends Dispatcher> dispatcher
           
 int[] expect
          sets the expected response status code.
 long timeout
          Sets the number of milliseconds to wait for a request to complete.
 

dispatcher

public abstract Class<? extends Dispatcher> dispatcher
Default:
org.fusesource.restygwt.client.Dispatcher.class

expect

public abstract int[] expect
sets the expected response status code. If the response status code does not match any of the values specified then the request is considered to have failed. Defaults to accepting 200,201,204. If set to -1 then any status code is considered a success.

Default:
{}

timeout

public abstract long timeout
Sets the number of milliseconds to wait for a request to complete. A value of zero disables timeouts.

Returns:
Default:
-1L


Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.