
Classes | |
| interface | Delegate |
| class | NoOpDelegate |
Public Member Functions | |
| ERXRestFormat.Delegate | delegate () |
| ERXRestFormat (String name, IERXRestParser parser, IERXRestWriter writer, ERXRestFormat.Delegate delegate) | |
| String | name () |
| ERXRestRequestNode | parse (String str) |
| IERXRestParser | parser () |
| String | toString () |
| String | toString (EOClassDescription classDescription, List<?> list, ERXKeyFilter filter, IERXRestDelegate delegate) |
| String | toString (Object obj, ERXKeyFilter filter, IERXRestDelegate delegate) |
| String | toString (Object obj, IERXRestDelegate delegate) |
| String | toString (Object obj) |
| IERXRestWriter | writer () |
Static Public Member Functions | |
| static ERXRestFormat | formatNamed (String name) |
| static ERXRestFormat | registerFormatNamed (ERXRestFormat format, String name) |
| static ERXRestFormat | registerFormatNamed (IERXRestParser parser, IERXRestWriter writer, ERXRestFormat.Delegate delegate, String...names) |
Static Public Attributes | |
| static ERXRestFormat | GIANDUIA_JSON = ERXRestFormat.registerFormatNamed(new ERXJSONRestParser(), new ERXGianduiaRestWriter(false), new ERXRestFormatDelegate(), "gndj", "application/gndj") |
| static ERXRestFormat | GIANDUIA_PERSISTENT_STORE = ERXRestFormat.registerFormatNamed(new ERXGianduiaRestParser(), new ERXGianduiaRestWriter(true), new ERXRestFormatDelegate(), "gndp", "application/gndp") |
| static ERXRestFormat | HTML = ERXRestFormat.registerFormatNamed(null, new ERXSimpleRestWriter(), new ERXRestFormatDelegate(), "html", "text/html") |
| static ERXRestFormat | JS = ERXRestFormat.registerFormatNamed(new ERXJSONRestParser(), new ERXJSONRestWriter(), new ERXRestFormatDelegate(), "js", "text/js") |
| static ERXRestFormat | JSON = ERXRestFormat.registerFormatNamed(new ERXJSONRestParser(), new ERXJSONRestWriter(), new ERXRestFormatDelegate(), "json", "application/json") |
| static ERXRestFormat | PLIST = ERXRestFormat.registerFormatNamed(new ERXPListRestParser(), new ERXPListRestWriter(), new ERXRestFormatDelegate(), "plist", "text/plist") |
| static ERXRestFormat | RAILS = ERXRestFormat.registerFormatNamed(new ERXXmlRestParser(), new ERXXmlRestWriter(), new ERXRestFormatDelegate("id", "type", "nil", true, true, true, true), "rails", "application/xml", "text/xml") |
| static ERXRestFormat | SPROUTCORE = ERXRestFormat.registerFormatNamed(new ERXJSONRestParser(), new ERXSproutCoreRestWriter(), new ERXRestFormatDelegate("guid", "type", "nil", true, true, true, false), "sc", "application/sc") |
| static ERXRestFormat | XML = ERXRestFormat.registerFormatNamed(new ERXXmlRestParser(), new ERXXmlRestWriter(), new ERXRestFormatDelegate(), "xml", "application/xml", "text/xml") |
Private Attributes | |
| ERXRestFormat.Delegate | _delegate |
| String | _name |
| IERXRestParser | _parser |
| IERXRestWriter | _writer |
Static Private Attributes | |
| static Map< String, ERXRestFormat > | _formats = new ConcurrentHashMap<String, ERXRestFormat>() |
| ERXRestFormat | ( | String | name, | |
| IERXRestParser | parser, | |||
| IERXRestWriter | writer, | |||
| ERXRestFormat.Delegate | delegate | |||
| ) |
| ERXRestFormat.Delegate delegate | ( | ) |
| static ERXRestFormat formatNamed | ( | String | name | ) | [static] |
| ERXRestRequestNode parse | ( | String | str | ) |
Returns a parsed ERXRestRequestNode using this format's parser.
| str | the string to parse |
| IERXRestParser parser | ( | ) |
| static ERXRestFormat registerFormatNamed | ( | ERXRestFormat | format, | |
| String | name | |||
| ) | [static] |
| static ERXRestFormat registerFormatNamed | ( | IERXRestParser | parser, | |
| IERXRestWriter | writer, | |||
| ERXRestFormat.Delegate | delegate, | |||
| String... | names | |||
| ) | [static] |
| String toString | ( | ) |
| String toString | ( | EOClassDescription | classDescription, | |
| List<?> | list, | |||
| ERXKeyFilter | filter, | |||
| IERXRestDelegate | delegate | |||
| ) |
| String toString | ( | Object | obj, | |
| ERXKeyFilter | filter, | |||
| IERXRestDelegate | delegate | |||
| ) |
| String toString | ( | Object | obj, | |
| IERXRestDelegate | delegate | |||
| ) |
| String toString | ( | Object | obj | ) |
| IERXRestWriter writer | ( | ) |
ERXRestFormat.Delegate _delegate [private] |
Map<String, ERXRestFormat> _formats = new ConcurrentHashMap<String, ERXRestFormat>() [static, private] |
IERXRestParser _parser [private] |
IERXRestWriter _writer [private] |
ERXRestFormat GIANDUIA_JSON = ERXRestFormat.registerFormatNamed(new ERXJSONRestParser(), new ERXGianduiaRestWriter(false), new ERXRestFormatDelegate(), "gndj", "application/gndj") [static] |
ERXRestFormat GIANDUIA_PERSISTENT_STORE = ERXRestFormat.registerFormatNamed(new ERXGianduiaRestParser(), new ERXGianduiaRestWriter(true), new ERXRestFormatDelegate(), "gndp", "application/gndp") [static] |
ERXRestFormat HTML = ERXRestFormat.registerFormatNamed(null, new ERXSimpleRestWriter(), new ERXRestFormatDelegate(), "html", "text/html") [static] |
ERXRestFormat JS = ERXRestFormat.registerFormatNamed(new ERXJSONRestParser(), new ERXJSONRestWriter(), new ERXRestFormatDelegate(), "js", "text/js") [static] |
ERXRestFormat JSON = ERXRestFormat.registerFormatNamed(new ERXJSONRestParser(), new ERXJSONRestWriter(), new ERXRestFormatDelegate(), "json", "application/json") [static] |
ERXRestFormat PLIST = ERXRestFormat.registerFormatNamed(new ERXPListRestParser(), new ERXPListRestWriter(), new ERXRestFormatDelegate(), "plist", "text/plist") [static] |
ERXRestFormat RAILS = ERXRestFormat.registerFormatNamed(new ERXXmlRestParser(), new ERXXmlRestWriter(), new ERXRestFormatDelegate("id", "type", "nil", true, true, true, true), "rails", "application/xml", "text/xml") [static] |
ERXRestFormat SPROUTCORE = ERXRestFormat.registerFormatNamed(new ERXJSONRestParser(), new ERXSproutCoreRestWriter(), new ERXRestFormatDelegate("guid", "type", "nil", true, true, true, false), "sc", "application/sc") [static] |
ERXRestFormat XML = ERXRestFormat.registerFormatNamed(new ERXXmlRestParser(), new ERXXmlRestWriter(), new ERXRestFormatDelegate(), "xml", "application/xml", "text/xml") [static] |
1.5.8