Package | Description |
---|---|
er.rest | |
er.rest.format | |
er.rest.routes |
Modifier and Type | Method and Description |
---|---|
String |
ERXRestRequestNode.toString(ERXRestFormat format,
ERXRestContext context)
Returns a string representation of this request node using the given format.
|
Modifier and Type | Method and Description |
---|---|
static ERXRestFormat |
ERXRestFormat.bplist()
Returns the registered plist format.
|
static ERXRestFormat |
ERXRestFormat.form()
Returns the registered html form format.
|
static ERXRestFormat |
ERXRestFormat.formatNamed(String name) |
static ERXRestFormat |
ERXRestFormat.html()
Returns the registered html format.
|
static ERXRestFormat |
ERXRestFormat.json()
Returns the registered json format.
|
static ERXRestFormat |
ERXRestFormat.plist()
Returns the registered plist format.
|
static ERXRestFormat |
ERXRestFormat.registerFormatNamed(ERXRestFormat format,
String name) |
static ERXRestFormat |
ERXRestFormat.registerFormatNamed(IERXRestParser parser,
IERXRestWriter writer,
ERXRestFormat.Delegate delegate,
String... names) |
static ERXRestFormat |
ERXRestFormat.xml()
Returns the registered xml format.
|
Modifier and Type | Method and Description |
---|---|
static ERXRestFormat |
ERXRestFormat.registerFormatNamed(ERXRestFormat format,
String name) |
Modifier and Type | Method and Description |
---|---|
protected ERXRestFormat |
ERXRouteController.defaultFormat()
Returns the default format to use if no other format is found, or if the requested format is invalid.
|
ERXRestFormat |
ERXRouteResults.format()
Returns the intended format of this response.
|
ERXRestFormat |
ERXRouteController.format()
Returns the format that the user requested (usually based on the request file extension).
|
protected ERXRestFormat |
ERXRouteController.formatNamed(String type)
Returns the format to use for the given type (see ERXRestFormat constants).
|
Modifier and Type | Method and Description |
---|---|
void |
ERXRouteController._setFormat(ERXRestFormat format)
Sets the format that will be used by this route controller.
|
void |
ERXRouteController._setRequestContent(ERXRestFormat format,
String requestContent)
Sets the request content that this controller will use for processing.
|
protected ERXRestFormat.Delegate |
ERXRouteController.formatDelegateForFormat(ERXRestFormat format)
Returns the default format delegate to use for the given format (defaults to format.delegate()).
|
WOActionResults |
ERXRouteController.response(ERXRestFormat format,
EOClassDescription entity,
NSArray<?> values,
ERXKeyFilter filter)
Returns the given array as a response in the given format.
|
WOActionResults |
ERXRouteController.response(ERXRestFormat format,
EOEditingContext editingContext,
String entityName,
NSArray<?> values,
ERXKeyFilter filter)
Returns the given array as a response in the given format.
|
WOActionResults |
ERXRouteController.response(ERXRestFormat format,
ERXRestRequestNode responseNode)
Returns the given ERXRestRequestNode as a response in the given format.
|
WOActionResults |
ERXRouteController.response(ERXRestFormat format,
Object value,
ERXKeyFilter filter)
Returns the given object as a WOResponse in the given format.
|
WOActionResults |
ERXRouteController.response(ERXRestFormat format,
String entityName,
NSArray<?> values,
ERXKeyFilter filter)
Returns the given array as a response in the given format.
|
Constructor and Description |
---|
ERXRouteResults(WOContext context,
ERXRestContext restContext,
ERXRestFormat format,
ERXRestRequestNode responseNode)
Constructs an ERXRouteResults.
|
Copyright © 2002 – 2024 Project Wonder.