org.fusesource.restygwt.client
Class Defaults

java.lang.Object
  extended by org.fusesource.restygwt.client.Defaults

public class Defaults
extends Object

Provides ability to set the default date format and service root (defaults to GWT.getModuleBaseURL()).

Author:
Dave Finch

Field Summary
static Dispatcher dispatcher
           
 
Constructor Summary
Defaults()
           
 
Method Summary
static boolean doesIgnoreJsonNulls()
          Indicates whether or not nulls will be ignored during JSON marshalling.
static void dontIgnoreJsonNulls()
           
static String getDateFormat()
           
static Dispatcher getDispatcher()
          Returns the default dispatcher.
static int getRequestTimeout()
           
static String getServiceRoot()
           
static void ignoreJsonNulls()
           
static void setDateFormat(String dateFormat)
          Sets the format used when encoding and decoding Dates.
static void setDispatcher(Dispatcher value)
          Sets the default dispatcher used by Method instances.
static void setRequestTimeout(int requestTimeout)
           
static void setServiceRoot(String serviceRoot)
          sets the URL prepended to the value of Path annotations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatcher

public static Dispatcher dispatcher
Constructor Detail

Defaults

public Defaults()
Method Detail

getServiceRoot

public static String getServiceRoot()

setServiceRoot

public static void setServiceRoot(String serviceRoot)
sets the URL prepended to the value of Path annotations.

Parameters:
serviceRoot -

getDateFormat

public static String getDateFormat()

setDateFormat

public static void setDateFormat(String dateFormat)
Sets the format used when encoding and decoding Dates.

Parameters:
dateFormat -

doesIgnoreJsonNulls

public static boolean doesIgnoreJsonNulls()
Indicates whether or not nulls will be ignored during JSON marshalling.


ignoreJsonNulls

public static void ignoreJsonNulls()

dontIgnoreJsonNulls

public static void dontIgnoreJsonNulls()

getRequestTimeout

public static final int getRequestTimeout()

setRequestTimeout

public static final void setRequestTimeout(int requestTimeout)

setDispatcher

public static void setDispatcher(Dispatcher value)
Sets the default dispatcher used by Method instances.

Parameters:
value -

getDispatcher

public static Dispatcher getDispatcher()
Returns the default dispatcher.

Returns:


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