com.bugvm.apple.foundation.NSURLSessionConfiguration Maven / Gradle / Ivy
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bugvm.apple.foundation;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.corefoundation.*;
import com.bugvm.apple.uikit.*;
import com.bugvm.apple.coretext.*;
import com.bugvm.apple.coreanimation.*;
import com.bugvm.apple.coredata.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coremedia.*;
import com.bugvm.apple.security.*;
import com.bugvm.apple.dispatch.*;
/* */
import com.bugvm.apple.coreservices.CFProxy;
/**/
/**
* @since Available in iOS 7.0 and later.
*/
/* */
/**/@Library("Foundation") @NativeClass/* */
/**/public/* */ class /**/NSURLSessionConfiguration/* */
extends /**/NSObject/* */
/**//* */ {
/**/public static class NSURLSessionConfigurationPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(NSURLSessionConfiguration.class); }/* */
/**//* */
/**/
public NSURLSessionConfiguration() {}
protected NSURLSessionConfiguration(SkipInit skipInit) { super(skipInit); }
/* */
/**/
@Property(selector = "identifier")
public native String getIdentifier();
@Property(selector = "requestCachePolicy")
public native NSURLRequestCachePolicy getRequestCachePolicy();
@Property(selector = "setRequestCachePolicy:")
public native void setRequestCachePolicy(NSURLRequestCachePolicy v);
@Property(selector = "timeoutIntervalForRequest")
public native double getTimeoutIntervalForRequest();
@Property(selector = "setTimeoutIntervalForRequest:")
public native void setTimeoutIntervalForRequest(double v);
@Property(selector = "timeoutIntervalForResource")
public native double getTimeoutIntervalForResource();
@Property(selector = "setTimeoutIntervalForResource:")
public native void setTimeoutIntervalForResource(double v);
@Property(selector = "networkServiceType")
public native NSURLRequestNetworkServiceType getNetworkServiceType();
@Property(selector = "setNetworkServiceType:")
public native void setNetworkServiceType(NSURLRequestNetworkServiceType v);
@Property(selector = "allowsCellularAccess")
public native boolean allowsCellularAccess();
@Property(selector = "setAllowsCellularAccess:")
public native void setAllowsCellularAccess(boolean v);
/**
* @since Available in iOS 7.0 and later.
*/
@Property(selector = "isDiscretionary")
public native boolean isDiscretionary();
/**
* @since Available in iOS 7.0 and later.
*/
@Property(selector = "setDiscretionary:")
public native void setDiscretionary(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "sharedContainerIdentifier")
public native String getSharedContainerIdentifier();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setSharedContainerIdentifier:")
public native void setSharedContainerIdentifier(String v);
/**
* @since Available in iOS 7.0 and later.
*/
@Property(selector = "sessionSendsLaunchEvents")
public native boolean sendsLaunchEvents();
/**
* @since Available in iOS 7.0 and later.
*/
@Property(selector = "setSessionSendsLaunchEvents:")
public native void setSendsLaunchEvents(boolean v);
@Property(selector = "connectionProxyDictionary")
public native CFProxy getConnectionProxy();
@Property(selector = "setConnectionProxyDictionary:")
public native void setConnectionProxy(CFProxy v);
@WeaklyLinked
@Property(selector = "TLSMinimumSupportedProtocol")
public native SSLProtocol getTLSMinimumSupportedProtocol();
@WeaklyLinked
@Property(selector = "setTLSMinimumSupportedProtocol:")
public native void setTLSMinimumSupportedProtocol(SSLProtocol v);
@WeaklyLinked
@Property(selector = "TLSMaximumSupportedProtocol")
public native SSLProtocol getTLSMaximumSupportedProtocol();
@WeaklyLinked
@Property(selector = "setTLSMaximumSupportedProtocol:")
public native void setTLSMaximumSupportedProtocol(SSLProtocol v);
@Property(selector = "HTTPShouldUsePipelining")
public native boolean shouldUseHTTPPipelining();
@Property(selector = "setHTTPShouldUsePipelining:")
public native void setShouldUseHTTPPipelining(boolean v);
@Property(selector = "HTTPShouldSetCookies")
public native boolean shouldSetHTTPCookies();
@Property(selector = "setHTTPShouldSetCookies:")
public native void setShouldSetHTTPCookies(boolean v);
@Property(selector = "HTTPCookieAcceptPolicy")
public native NSHTTPCookieAcceptPolicy getHTTPCookieAcceptPolicy();
@Property(selector = "setHTTPCookieAcceptPolicy:")
public native void setHTTPCookieAcceptPolicy(NSHTTPCookieAcceptPolicy v);
@Property(selector = "HTTPAdditionalHeaders")
public native @com.bugvm.rt.bro.annotation.Marshaler(NSDictionary.AsStringStringMapMarshaler.class) Map getGetAdditionalHTTPHeaders();
@Property(selector = "setHTTPAdditionalHeaders:")
public native void setGetAdditionalHTTPHeaders(@com.bugvm.rt.bro.annotation.Marshaler(NSDictionary.AsStringStringMapMarshaler.class) Map v);
@Property(selector = "HTTPMaximumConnectionsPerHost")
public native @MachineSizedSInt long getMaximumHTTPConnectionsPerHost();
@Property(selector = "setHTTPMaximumConnectionsPerHost:")
public native void setMaximumHTTPConnectionsPerHost(@MachineSizedSInt long v);
@Property(selector = "HTTPCookieStorage")
public native NSHTTPCookieStorage getHTTPCookieStorage();
@Property(selector = "setHTTPCookieStorage:")
public native void setHTTPCookieStorage(NSHTTPCookieStorage v);
@Property(selector = "URLCredentialStorage")
public native NSURLCredentialStorage getURLCredentialStorage();
@Property(selector = "setURLCredentialStorage:")
public native void setURLCredentialStorage(NSURLCredentialStorage v);
@Property(selector = "URLCache")
public native NSURLCache getURLCache();
@Property(selector = "setURLCache:")
public native void setURLCache(NSURLCache v);
/**
* @since Available in iOS 9.0 and later.
*/
@Property(selector = "shouldUseExtendedBackgroundIdleMode")
public native boolean shouldUseExtendedBackgroundIdleMode();
/**
* @since Available in iOS 9.0 and later.
*/
@Property(selector = "setShouldUseExtendedBackgroundIdleMode:")
public native void setShouldUseExtendedBackgroundIdleMode(boolean v);
@Property(selector = "protocolClasses")
public native @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List getProtocolClasses();
@Property(selector = "setProtocolClasses:")
public native void setProtocolClasses(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List v);
/* */
/**//* */
/**/
@Method(selector = "defaultSessionConfiguration")
public static native NSURLSessionConfiguration getDefaultSessionConfiguration();
@Method(selector = "ephemeralSessionConfiguration")
public static native NSURLSessionConfiguration getEphemeralSessionConfiguration();
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "backgroundSessionConfigurationWithIdentifier:")
public static native NSURLSessionConfiguration getBackgroundSessionConfiguration(String identifier);
/**
* @since Available in iOS 7.0 and later.
* @deprecated Deprecated in iOS 8.0.
*/
@Deprecated
@Method(selector = "backgroundSessionConfiguration:")
public static native NSURLSessionConfiguration getBackgroundSessionConfiguration7(String identifier);
/* */
}