public class ERXRouteResults extends Object implements WOActionResults
Name | Description |
---|---|
ERXRest.strictMode | (default "true") If set to true, creating a ressource will return status code 201 Created, if set to false, will return 200 OK |
Constructor and Description |
---|
ERXRouteResults(WOContext context,
ERXRestContext restContext,
ERXRestFormat format,
ERXRestRequestNode responseNode)
Constructs an ERXRouteResults.
|
Modifier and Type | Method and Description |
---|---|
ERXRestFormat |
format()
Returns the intended format of this response.
|
WOResponse |
generateResponse()
Generates a WOResponse out of this ERXRouteResults.
|
ERXRestRequestNode |
responseNode()
Returns the ERXRestRequestNode to render.
|
void |
setHeaderForKey(String header,
String key)
Adds a header for the resulting WOResponse.
|
public ERXRouteResults(WOContext context, ERXRestContext restContext, ERXRestFormat format, ERXRestRequestNode responseNode)
context
- the current contextrestContext
- the REST contextformat
- the intended format of this responseresponseNode
- the ERXRestRequestNode to renderpublic void setHeaderForKey(String header, String key)
header
- the header to addkey
- the key to addpublic ERXRestFormat format()
public ERXRestRequestNode responseNode()
public WOResponse generateResponse()
generateResponse
in interface WOActionResults
Copyright © 2002 – 2024 Project Wonder.