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: 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