blob: 6ec9c26bb89ad7162a70d34be4703bb65431194b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package org.eclipse.swt.internal.cocoa;
public class NSHTTPURLResponse extends NSURLResponse {
public NSHTTPURLResponse() {
super();
}
public NSHTTPURLResponse(int id) {
super(id);
}
public NSDictionary allHeaderFields() {
int result = OS.objc_msgSend(this.id, OS.sel_allHeaderFields);
return result != 0 ? new NSDictionary(result) : null;
}
public static NSString localizedStringForStatusCode(int statusCode) {
int result = OS.objc_msgSend(OS.class_NSHTTPURLResponse, OS.sel_localizedStringForStatusCode_1, statusCode);
return result != 0 ? new NSString(result) : null;
}
public int statusCode() {
return OS.objc_msgSend(this.id, OS.sel_statusCode);
}
}
|