
system.net.http.SocketsHttpHandler Maven / Gradle / Ivy
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**************************************************************************************
*
* This code was generated from a template using JCOReflector
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
*
*************************************************************************************/
package system.net.http;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;
// Import section
import system.net.http.HttpMessageHandler;
import system.diagnostics.DistributedContextPropagator;
import system.net.CookieContainer;
import system.net.DecompressionMethods;
import system.net.http.HttpKeepAlivePingPolicy;
import system.net.ICredentials;
import system.net.ICredentialsImplementation;
import system.net.IWebProxy;
import system.net.IWebProxyImplementation;
import system.net.security.SslClientAuthenticationOptions;
import system.TimeSpan;
/**
* The base .NET class managing System.Net.Http.SocketsHttpHandler, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
*
*
* See: https://docs.microsoft.com/en-us/dotnet/api/System.Net.Http.SocketsHttpHandler
*/
public class SocketsHttpHandler extends HttpMessageHandler {
/**
* Fully assembly qualified name: System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
*/
public static final String assemblyFullName = "System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
/**
* Assembly name: System.Net.Http
*/
public static final String assemblyShortName = "System.Net.Http";
/**
* Qualified class name: System.Net.Http.SocketsHttpHandler
*/
public static final String className = "System.Net.Http.SocketsHttpHandler";
static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName);
/**
* The type managed from JCOBridge. See {@link JCType}
*/
public static JCType classType = createType();
static JCEnum enumInstance = null;
JCObject classInstance = null;
static JCType createType() {
try {
String classToCreate = className + ", "
+ (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Creating %s", classToCreate);
JCType typeCreated = bridge.GetType(classToCreate);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Created: %s",
(typeCreated != null) ? typeCreated.toString() : "Returned null value");
return typeCreated;
} catch (JCException e) {
JCOReflector.writeLog(e);
return null;
}
}
void addReference(String ref) throws Throwable {
try {
bridge.AddReference(ref);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
/**
* Internal constructor. Use with caution
*/
public SocketsHttpHandler(java.lang.Object instance) throws Throwable {
super(instance);
if (instance instanceof JCObject) {
classInstance = (JCObject) instance;
} else
throw new Exception("Cannot manage object, it is not a JCObject");
}
public String getJCOAssemblyName() {
return assemblyFullName;
}
public String getJCOClassName() {
return className;
}
public String getJCOObjectName() {
return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
}
public java.lang.Object getJCOInstance() {
return classInstance;
}
public void setJCOInstance(JCObject instance) {
classInstance = instance;
super.setJCOInstance(classInstance);
}
public JCType getJCOType() {
return classType;
}
/**
* Try to cast the {@link IJCOBridgeReflected} instance into {@link SocketsHttpHandler}, a cast assert is made to check if types are compatible.
* @param from {@link IJCOBridgeReflected} instance to be casted
* @return {@link SocketsHttpHandler} instance
* @throws java.lang.Throwable in case of error during cast operation
*/
public static SocketsHttpHandler cast(IJCOBridgeReflected from) throws Throwable {
NetType.AssertCast(classType, from);
return new SocketsHttpHandler(from.getJCOInstance());
}
// Constructors section
public SocketsHttpHandler() throws Throwable, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.InvalidOperationException, system.ArrayTypeMismatchException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.diagnostics.tracing.EventSourceException, system.OutOfMemoryException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Methods section
// Properties section
public boolean getAllowAutoRedirect() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("AllowAutoRedirect");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setAllowAutoRedirect(boolean AllowAutoRedirect) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("AllowAutoRedirect", AllowAutoRedirect);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getEnableMultipleHttp2Connections() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("EnableMultipleHttp2Connections");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setEnableMultipleHttp2Connections(boolean EnableMultipleHttp2Connections) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("EnableMultipleHttp2Connections", EnableMultipleHttp2Connections);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static boolean getIsSupported() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (boolean)classType.Get("IsSupported");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getPreAuthenticate() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("PreAuthenticate");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setPreAuthenticate(boolean PreAuthenticate) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("PreAuthenticate", PreAuthenticate);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getUseCookies() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("UseCookies");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setUseCookies(boolean UseCookies) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("UseCookies", UseCookies);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getUseProxy() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("UseProxy");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setUseProxy(boolean UseProxy) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("UseProxy", UseProxy);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int getInitialHttp2StreamWindowSize() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Get("InitialHttp2StreamWindowSize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setInitialHttp2StreamWindowSize(int InitialHttp2StreamWindowSize) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("InitialHttp2StreamWindowSize", InitialHttp2StreamWindowSize);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int getMaxAutomaticRedirections() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Get("MaxAutomaticRedirections");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setMaxAutomaticRedirections(int MaxAutomaticRedirections) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("MaxAutomaticRedirections", MaxAutomaticRedirections);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int getMaxConnectionsPerServer() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Get("MaxConnectionsPerServer");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setMaxConnectionsPerServer(int MaxConnectionsPerServer) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("MaxConnectionsPerServer", MaxConnectionsPerServer);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int getMaxResponseDrainSize() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Get("MaxResponseDrainSize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setMaxResponseDrainSize(int MaxResponseDrainSize) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("MaxResponseDrainSize", MaxResponseDrainSize);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int getMaxResponseHeadersLength() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Get("MaxResponseHeadersLength");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setMaxResponseHeadersLength(int MaxResponseHeadersLength) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("MaxResponseHeadersLength", MaxResponseHeadersLength);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public DistributedContextPropagator getActivityHeadersPropagator() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("ActivityHeadersPropagator");
return new DistributedContextPropagator(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setActivityHeadersPropagator(DistributedContextPropagator ActivityHeadersPropagator) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("ActivityHeadersPropagator", ActivityHeadersPropagator == null ? null : ActivityHeadersPropagator.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public CookieContainer getCookieContainer() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.FormatException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("CookieContainer");
return new CookieContainer(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setCookieContainer(CookieContainer CookieContainer) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("CookieContainer", CookieContainer == null ? null : CookieContainer.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public DecompressionMethods getAutomaticDecompression() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("AutomaticDecompression");
return new DecompressionMethods(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setAutomaticDecompression(DecompressionMethods AutomaticDecompression) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("AutomaticDecompression", AutomaticDecompression == null ? null : AutomaticDecompression.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public HttpKeepAlivePingPolicy getKeepAlivePingPolicy() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("KeepAlivePingPolicy");
return new HttpKeepAlivePingPolicy(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setKeepAlivePingPolicy(HttpKeepAlivePingPolicy KeepAlivePingPolicy) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("KeepAlivePingPolicy", KeepAlivePingPolicy == null ? null : KeepAlivePingPolicy.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public ICredentials getCredentials() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Credentials");
return new ICredentialsImplementation(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setCredentials(ICredentials Credentials) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("Credentials", Credentials == null ? null : Credentials.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public ICredentials getDefaultProxyCredentials() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("DefaultProxyCredentials");
return new ICredentialsImplementation(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setDefaultProxyCredentials(ICredentials DefaultProxyCredentials) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("DefaultProxyCredentials", DefaultProxyCredentials == null ? null : DefaultProxyCredentials.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public IWebProxy getProxy() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Proxy");
return new IWebProxyImplementation(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setProxy(IWebProxy Proxy) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("Proxy", Proxy == null ? null : Proxy.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SslClientAuthenticationOptions getSslOptions() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("SslOptions");
return new SslClientAuthenticationOptions(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setSslOptions(SslClientAuthenticationOptions SslOptions) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("SslOptions", SslOptions == null ? null : SslOptions.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public TimeSpan getConnectTimeout() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("ConnectTimeout");
return new TimeSpan(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setConnectTimeout(TimeSpan ConnectTimeout) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("ConnectTimeout", ConnectTimeout == null ? null : ConnectTimeout.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public TimeSpan getExpect100ContinueTimeout() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Expect100ContinueTimeout");
return new TimeSpan(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setExpect100ContinueTimeout(TimeSpan Expect100ContinueTimeout) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("Expect100ContinueTimeout", Expect100ContinueTimeout == null ? null : Expect100ContinueTimeout.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public TimeSpan getKeepAlivePingDelay() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("KeepAlivePingDelay");
return new TimeSpan(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setKeepAlivePingDelay(TimeSpan KeepAlivePingDelay) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.OverflowException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("KeepAlivePingDelay", KeepAlivePingDelay == null ? null : KeepAlivePingDelay.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public TimeSpan getKeepAlivePingTimeout() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("KeepAlivePingTimeout");
return new TimeSpan(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setKeepAlivePingTimeout(TimeSpan KeepAlivePingTimeout) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.OverflowException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("KeepAlivePingTimeout", KeepAlivePingTimeout == null ? null : KeepAlivePingTimeout.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public TimeSpan getPooledConnectionIdleTimeout() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("PooledConnectionIdleTimeout");
return new TimeSpan(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setPooledConnectionIdleTimeout(TimeSpan PooledConnectionIdleTimeout) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("PooledConnectionIdleTimeout", PooledConnectionIdleTimeout == null ? null : PooledConnectionIdleTimeout.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public TimeSpan getPooledConnectionLifetime() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("PooledConnectionLifetime");
return new TimeSpan(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setPooledConnectionLifetime(TimeSpan PooledConnectionLifetime) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("PooledConnectionLifetime", PooledConnectionLifetime == null ? null : PooledConnectionLifetime.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public TimeSpan getResponseDrainTimeout() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("ResponseDrainTimeout");
return new TimeSpan(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setResponseDrainTimeout(TimeSpan ResponseDrainTimeout) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("ResponseDrainTimeout", ResponseDrainTimeout == null ? null : ResponseDrainTimeout.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Instance Events section
}