|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fusesource.restygwt.client.Defaults
public class Defaults
Provides ability to set the default date format and service root (defaults to GWT.getModuleBaseURL()).
| 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 |
|---|
public static Dispatcher dispatcher
| Constructor Detail |
|---|
public Defaults()
| Method Detail |
|---|
public static String getServiceRoot()
public static void setServiceRoot(String serviceRoot)
serviceRoot - public static String getDateFormat()
public static void setDateFormat(String dateFormat)
dateFormat - public static boolean doesIgnoreJsonNulls()
public static void ignoreJsonNulls()
public static void dontIgnoreJsonNulls()
public static final int getRequestTimeout()
public static final void setRequestTimeout(int requestTimeout)
public static void setDispatcher(Dispatcher value)
value - public static Dispatcher getDispatcher()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||