Re: WOApplication.createRequest 5.3 and 5.4
Re: WOApplication.createRequest 5.3 and 5.4
- Subject: Re: WOApplication.createRequest 5.3 and 5.4
- From: Anjo Krank <email@hidden>
- Date: Mon, 29 Oct 2007 20:51:45 +0100
Three's a charm. Yes, you're right (almost, you have to say
(someInfo == null ? null: new NSDictionary(someInfo, false))).
Cheers, Anjo
Am 29.10.2007 um 19:56 schrieb Art Isbell:
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:
40logicunited.com
This email sent to email@hidden
_______________________________________________
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