ERXRestContext Class Reference

Inherits com::webobjects::foundation::NSKeyValueCoding.

Collaboration diagram for ERXRestContext:

Collaboration graph
[legend]

List of all members.

Public Member Functions

WOContext context ()
IERXRestDelegate delegate ()
EOEditingContext editingContext ()
 ERXRestContext (WOContext context, EOEditingContext editingContext, IERXRestDelegate delegate)
 ERXRestContext (IERXRestDelegate delegate)
 ERXRestContext (IERXRestEntityDelegate defaultEntityDelegate)
Object handleQueryWithUnboundKey (String key)
void handleTakeValueForUnboundKey (Object value, String key)
void setDelegate (IERXRestDelegate delegate)
void takeValueForKey (Object obj, String key)
void unableToSetNullForKey (String key)
Object valueForKey (String key)

Private Attributes

NSMutableDictionary< String,
Object > 
_attributes
WOContext _context
IERXRestDelegate _delegate
EOEditingContext _editingContext


Detailed Description

ERXRestContext contains all the state for a single REST request. ERXRestContext provides access to the WOContext, which will allow you to access the session should you desire (only cookie sessions can be used by clients right now). Additionally, ERXRestContext acts as a dictionary, so you can put arbitrary values into it if you just want to use it to pass the current User around that way. The EOEditingContext provided by this context is locked at the request level, similar to the session defaultEditingContext.

Author:
mschrag

Constructor & Destructor Documentation

ERXRestContext ( IERXRestEntityDelegate  defaultEntityDelegate  ) 

Shortcut for constructing a rest context with a single default entity delegate.

Parameters:
defaultEntityDelegate the default entity delegate

ERXRestContext ( IERXRestDelegate  delegate  ) 

Constructs a rest context.

ERXRestContext ( WOContext  context,
EOEditingContext  editingContext,
IERXRestDelegate  delegate 
)

Constructs a rest context.

Parameters:
context the WOContext
editingContext the EOEditingContext


Member Function Documentation

WOContext context (  ) 

Returns the WOContext for this request.

Returns:
the WOContext for this request

IERXRestDelegate delegate (  ) 

Returns the REST delegate for this context.

Returns:
the REST delegate for this context

EOEditingContext editingContext (  ) 

Returns the EOEditingContext for this request.

Returns:
the EOEditingContext for this request

Object handleQueryWithUnboundKey ( String  key  ) 

void handleTakeValueForUnboundKey ( Object  value,
String  key 
)

void setDelegate ( IERXRestDelegate  delegate  ) 

Sets the REST delegate for this context (called by ERXRestRequestHandler).

Parameters:
delegate the REST delegate for this context

void takeValueForKey ( Object  obj,
String  key 
)

void unableToSetNullForKey ( String  key  ) 

Object valueForKey ( String  key  ) 


Member Data Documentation

WOContext _context [private]

EOEditingContext _editingContext [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:28 2012 for Project Wonder by  doxygen 1.5.8