Package system.net.http
Class HttpClientHandler
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.net.http.HttpMessageHandler
-
- system.net.http.HttpClientHandler
-
- All Implemented Interfaces:
AutoCloseable
,IJCOBridgeReflected
public class HttpClientHandler extends HttpMessageHandler
The base .NET class managing System.Net.Http.HttpClientHandler, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.Net.Http.HttpClientHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.Net.Httpstatic String
className
Qualified class name: System.Net.Http.HttpClientHandlerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description HttpClientHandler()
HttpClientHandler(Object instance)
Internal constructor.
-
Method Summary
-
Methods inherited from class system.net.http.HttpMessageHandler
close, Dispose
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Net.Http- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Net.Http.HttpClientHandler- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpClientHandler
public HttpClientHandler(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
HttpClientHandler
public HttpClientHandler() throws Throwable, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArrayTypeMismatchException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, EventSourceException, OutOfMemoryException, ObjectDisposedException, CryptographicException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classHttpMessageHandler
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classHttpMessageHandler
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classHttpMessageHandler
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classHttpMessageHandler
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classHttpMessageHandler
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classHttpMessageHandler
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static HttpClientHandler cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoHttpClientHandler
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
HttpClientHandler
instance- Throws:
Throwable
- in case of error during cast operation
-
setAllowAutoRedirect
public void setAllowAutoRedirect(boolean AllowAutoRedirect) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
-
getCheckCertificateRevocationList
public boolean getCheckCertificateRevocationList() throws Throwable
- Throws:
Throwable
-
setCheckCertificateRevocationList
public void setCheckCertificateRevocationList(boolean CheckCertificateRevocationList) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException
-
setPreAuthenticate
public void setPreAuthenticate(boolean PreAuthenticate) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
-
getSupportsAutomaticDecompression
public boolean getSupportsAutomaticDecompression() throws Throwable
- Throws:
Throwable
-
getSupportsRedirectConfiguration
public boolean getSupportsRedirectConfiguration() throws Throwable
- Throws:
Throwable
-
setUseCookies
public void setUseCookies(boolean UseCookies) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
-
getUseDefaultCredentials
public boolean getUseDefaultCredentials() throws Throwable
- Throws:
Throwable
-
setUseDefaultCredentials
public void setUseDefaultCredentials(boolean UseDefaultCredentials) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
-
setUseProxy
public void setUseProxy(boolean UseProxy) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
-
getMaxAutomaticRedirections
public int getMaxAutomaticRedirections() throws Throwable
- Throws:
Throwable
-
setMaxAutomaticRedirections
public void setMaxAutomaticRedirections(int MaxAutomaticRedirections) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getMaxConnectionsPerServer
public int getMaxConnectionsPerServer() throws Throwable
- Throws:
Throwable
-
setMaxConnectionsPerServer
public void setMaxConnectionsPerServer(int MaxConnectionsPerServer) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getMaxResponseHeadersLength
public int getMaxResponseHeadersLength() throws Throwable
- Throws:
Throwable
-
setMaxResponseHeadersLength
public void setMaxResponseHeadersLength(int MaxResponseHeadersLength) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getMaxRequestContentBufferSize
public long getMaxRequestContentBufferSize() throws Throwable
- Throws:
Throwable
-
setMaxRequestContentBufferSize
public void setMaxRequestContentBufferSize(long MaxRequestContentBufferSize) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, FormatException
-
getCookieContainer
public CookieContainer getCookieContainer() throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException
-
setCookieContainer
public void setCookieContainer(CookieContainer CookieContainer) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getAutomaticDecompression
public DecompressionMethods getAutomaticDecompression() throws Throwable
- Throws:
Throwable
-
setAutomaticDecompression
public void setAutomaticDecompression(DecompressionMethods AutomaticDecompression) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
-
getClientCertificateOptions
public ClientCertificateOption getClientCertificateOptions() throws Throwable
- Throws:
Throwable
-
setClientCertificateOptions
public void setClientCertificateOptions(ClientCertificateOption ClientCertificateOptions) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, CryptographicException, IndexOutOfRangeException, EventSourceException
-
getCredentials
public ICredentials getCredentials() throws Throwable
- Throws:
Throwable
-
setCredentials
public void setCredentials(ICredentials Credentials) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
-
getDefaultProxyCredentials
public ICredentials getDefaultProxyCredentials() throws Throwable
- Throws:
Throwable
-
setDefaultProxyCredentials
public void setDefaultProxyCredentials(ICredentials DefaultProxyCredentials) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
-
setProxy
public void setProxy(IWebProxy Proxy) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
-
getSslProtocols
public SslProtocols getSslProtocols() throws Throwable
- Throws:
Throwable
-
setSslProtocols
public void setSslProtocols(SslProtocols SslProtocols) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException
-
getClientCertificates
public X509CertificateCollection getClientCertificates() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
-