• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: RESTful WO messages for non-persistent objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RESTful WO messages for non-persistent objects


  • Subject: Re: RESTful WO messages for non-persistent objects
  • From: Mike Schrag <email@hidden>
  • Date: Tue, 23 Jun 2009 11:42:59 -0400

if you're creating new objects, i THINK it should just work with errest ... if you're referencing existing ones, you have to provide an implementation IERXRestDelegate that can resolve objectOfEntityNameWIthID (where "entity name" is really "class name" for non-EOs)
... in your ERXRouteController subclass:


/**
* Returns the default rest delegate for this controller (an ERXRestRequestNode.EODelegate using the editing context
* returned from editingContext()). Override this method to provide a custom delegate implementation for this
* controller.
* 
* @return a default rest delegate
*/
protected IERXRestDelegate delegate() {
return new ERXEORestDelegate(editingContext());
}


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >RESTful WO messages for non-persistent objects (From: DANIEL BEATTY <email@hidden>)
 >Re: RESTful WO messages for non-persistent objects (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: RESTful WO messages for non-persistent objects
  • Next by Date: SAXParseException only when clients use https
  • Previous by thread: Re: RESTful WO messages for non-persistent objects
  • Next by thread: SAXParseException only when clients use https
  • Index(es):
    • Date
    • Thread