public class ERXRouteResults extends Object implements com.webobjects.appserver.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(com.webobjects.appserver.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.
|
com.webobjects.appserver.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(com.webobjects.appserver.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 com.webobjects.appserver.WOResponse generateResponse()
generateResponse
in interface com.webobjects.appserver.WOActionResults
Copyright © 2002 – 2020 Project Wonder.