• 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: WOApplication.createRequest 5.3 and 5.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOApplication.createRequest 5.3 and 5.4


  • Subject: Re: WOApplication.createRequest 5.3 and 5.4
  • From: Art Isbell <email@hidden>
  • Date: Mon, 29 Oct 2007 08:56:24 -1000

On Oct 29, 2007, at 5:30 AM, Anjo Krank wrote:

Actually, to be able to compile, you have to write:

public WORequest createRequest(String aMethod, String aURL, String anHTTPVersion, Map someHeaders, NSData aContent, NSDictionary someInfo) {
return _createRequest(aMethod, aURL, anHTTPVersion, new NSDictionary(someHeaders, false), aContent, someInfo);
}


With the original question being about overriding both WO 5.3 and 5.4 versions of WOApplication's createRequest(), the above method wouldn't override the WO 5.4 version because the method signatures don't match. Is this what you intended?

public WORequest createRequest(String aMethod, String aURL, String anHTTPVersion, Map someHeaders, NSData aContent, Map someInfo) {
return _createRequest(aMethod, aURL, anHTTPVersion, new NSDictionary(someHeaders, false), aContent, new NSDictionary(someInfo));
}


Aloha,
Art

_______________________________________________
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


  • Follow-Ups:
    • Re: WOApplication.createRequest 5.3 and 5.4
      • From: Anjo Krank <email@hidden>
References: 
 >WOApplication.createRequest 5.3 and 5.4 (From: Andrew Lindesay <email@hidden>)
 >Re: WOApplication.createRequest 5.3 and 5.4 (From: Anjo Krank <email@hidden>)
 >Re: WOApplication.createRequest 5.3 and 5.4 (From: Anjo Krank <email@hidden>)

  • Prev by Date: Re: Database choices
  • Next by Date: Re: Database choices
  • Previous by thread: Re: WOApplication.createRequest 5.3 and 5.4
  • Next by thread: Re: WOApplication.createRequest 5.3 and 5.4
  • Index(es):
    • Date
    • Thread