diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURLAuthenticationChallenge.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURLAuthenticationChallenge.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURLAuthenticationChallenge.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURLAuthenticationChallenge.java new file mode 100644 index 0000000000..5ec722b20b --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURLAuthenticationChallenge.java @@ -0,0 +1,52 @@ +package org.eclipse.swt.internal.cocoa; + +public class NSURLAuthenticationChallenge extends NSObject { + +public NSURLAuthenticationChallenge() { + super(); +} + +public NSURLAuthenticationChallenge(int id) { + super(id); +} + +public NSError error() { + int result = OS.objc_msgSend(this.id, OS.sel_error); + return result != 0 ? new NSError(result) : null; +} + +public NSURLResponse failureResponse() { + int result = OS.objc_msgSend(this.id, OS.sel_failureResponse); + return result != 0 ? new NSURLResponse(result) : null; +} + +public id initWithAuthenticationChallenge(NSURLAuthenticationChallenge challenge, id sender) { + int result = OS.objc_msgSend(this.id, OS.sel_initWithAuthenticationChallenge_1sender_1, challenge != null ? challenge.id : 0, sender != null ? sender.id : 0); + return result != 0 ? new id(result) : null; +} + +public id initWithProtectionSpace(NSURLProtectionSpace space, NSURLCredential credential, int previousFailureCount, NSURLResponse response, NSError error, id sender) { + int result = OS.objc_msgSend(this.id, OS.sel_initWithProtectionSpace_1proposedCredential_1previousFailureCount_1failureResponse_1error_1sender_1, space != null ? space.id : 0, credential != null ? credential.id : 0, previousFailureCount, response != null ? response.id : 0, error != null ? error.id : 0, sender != null ? sender.id : 0); + return result != 0 ? new id(result) : null; +} + +public int previousFailureCount() { + return OS.objc_msgSend(this.id, OS.sel_previousFailureCount); +} + +public NSURLCredential proposedCredential() { + int result = OS.objc_msgSend(this.id, OS.sel_proposedCredential); + return result != 0 ? new NSURLCredential(result) : null; +} + +public NSURLProtectionSpace protectionSpace() { + int result = OS.objc_msgSend(this.id, OS.sel_protectionSpace); + return result != 0 ? new NSURLProtectionSpace(result) : null; +} + +public id sender() { + int result = OS.objc_msgSend(this.id, OS.sel_sender); + return result != 0 ? new id(result) : null; +} + +} |