@MarshalsPointer public static NSHTTPCookieAttributes toObject(Class<NSHTTPCookieAttributes> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSHTTPCookieAttributes(o); } @MarshalsPointer
public boolean discards() { if (has(NSHTTPCookieAttribute.Discard)) { NSString val = (NSString)get(NSHTTPCookieAttribute.Discard); return val.toString().equals("TRUE"); } if (getVersion() >= 1 && getMaximumAge() == 0) return true; return false; } public NSHTTPCookieAttributes setDiscards(boolean discard) {
public NSHTTPCookieAttributes setOriginURL(NSURL originURL) { set(NSHTTPCookieAttribute.OriginURL, originURL); return this; } public int getVersion() {
public boolean isSecure() { if (has(NSHTTPCookieAttribute.Secure)) { return true; } return false; } public NSHTTPCookieAttributes setSecure(boolean secure) {
@MarshalsPointer public static long toNative(List<NSHTTPCookieAttributes> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSHTTPCookieAttributes i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSHTTPCookieAttributes setExpireDate(NSDate expireDate) { set(NSHTTPCookieAttribute.Expires, expireDate); return this; } public String getComment() {
public NSObject get(NSHTTPCookieAttribute key) { if (has(key)) { return data.get(key.value()); } return null; } public NSHTTPCookieAttributes set(NSHTTPCookieAttribute key, NSObject value) {
@MarshalsPointer public static long toNative(List<NSHTTPCookieAttributes> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSHTTPCookieAttributes i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public boolean discards() { if (has(NSHTTPCookieAttribute.Discard)) { NSString val = (NSString)get(NSHTTPCookieAttribute.Discard); return val.toString().equals("TRUE"); } if (getVersion() >= 1 && getMaximumAge() == 0) return true; return false; } public NSHTTPCookieAttributes setDiscards(boolean discard) {
public NSHTTPCookieAttributes setCommentURL(NSURL commentURL) { set(NSHTTPCookieAttribute.CommentURL, commentURL); return this; } public int getMaximumAge() {
@MarshalsPointer public static List<NSHTTPCookieAttributes> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<NSHTTPCookieAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new NSHTTPCookieAttributes(o.get(i))); } return list; } @MarshalsPointer
public boolean isSecure() { if (has(NSHTTPCookieAttribute.Secure)) { return true; } return false; } public NSHTTPCookieAttributes setSecure(boolean secure) {
@MarshalsPointer public static long toNative(List<NSHTTPCookieAttributes> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSHTTPCookieAttributes i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public boolean discards() { if (has(NSHTTPCookieAttribute.Discard)) { NSString val = (NSString)get(NSHTTPCookieAttribute.Discard); return val.toString().equals("TRUE"); } if (getVersion() >= 1 && getMaximumAge() == 0) return true; return false; } public NSHTTPCookieAttributes setDiscards(boolean discard) {
public NSHTTPCookieAttributes setValue(String value) { set(NSHTTPCookieAttribute.Value, new NSString(value)); return this; } public NSURL getOriginURL() {
@MarshalsPointer public static NSHTTPCookieAttributes toObject(Class<NSHTTPCookieAttributes> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSHTTPCookieAttributes(o); } @MarshalsPointer
public boolean isSecure() { if (has(NSHTTPCookieAttribute.Secure)) { return true; } return false; } public NSHTTPCookieAttributes setSecure(boolean secure) {