|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.rest.routes.ERXRouteResults
public class ERXRouteResults
ERXRouteResults encapsulates the data necessary to produce a RESTful response. This object exists to defer the generation of the response (so you can chain together rest responders).
Constructor Summary | |
---|---|
ERXRouteResults(com.webobjects.appserver.WOContext context,
ERXRestFormat format,
ERXRestRequestNode responseNode)
Constructs an ERXRouteResults. |
Method Summary | |
---|---|
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(java.lang.String header,
java.lang.String key)
Adds a header for the resulting WOResponse. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ERXRouteResults(com.webobjects.appserver.WOContext context, ERXRestFormat format, ERXRestRequestNode responseNode)
context
- the current contextformat
- the intended format of this responseresponseNode
- the ERXRestRequestNode to renderMethod Detail |
---|
public void setHeaderForKey(java.lang.String header, java.lang.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
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |