Package system.net
Class WebProxy
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.net.WebProxy
-
- All Implemented Interfaces:
IJCOBridgeReflected,ISerializable
public class WebProxy extends NetObject implements ISerializable
The base .NET class managing System.Net.WebProxy, System.Net.WebProxy, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.WebProxy
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Net.WebProxy, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Net.WebProxystatic java.lang.StringclassNameQualified class name: System.Net.WebProxystatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description WebProxy()WebProxy(java.lang.Object instance)Internal constructor.WebProxy(java.lang.String Address)WebProxy(java.lang.String Address, boolean BypassOnLocal)WebProxy(java.lang.String Address, boolean BypassOnLocal, java.lang.String[] BypassList)WebProxy(java.lang.String Address, boolean BypassOnLocal, java.lang.String[] BypassList, ICredentials Credentials)WebProxy(java.lang.String Host, int Port)WebProxy(Uri Address)WebProxy(Uri Address, boolean BypassOnLocal)WebProxy(Uri Address, boolean BypassOnLocal, java.lang.String[] BypassList)WebProxy(Uri Address, boolean BypassOnLocal, java.lang.String[] BypassList, ICredentials Credentials)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebProxycast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoWebProxy, a cast assert is made to check if types are compatible.UrigetAddress()NetArrayListgetBypassArrayList()java.lang.String[]getBypassList()booleangetBypassProxyOnLocal()ICredentialsgetCredentials()static WebProxyGetDefaultProxy()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeUriGetProxy(Uri destination)booleangetUseDefaultCredentials()booleanIsBypassed(Uri host)voidsetAddress(Uri Address)voidsetBypassList(java.lang.String[] BypassList)voidsetBypassProxyOnLocal(boolean BypassProxyOnLocal)voidsetCredentials(ICredentials Credentials)voidsetJCOInstance(JCObject instance)voidsetUseDefaultCredentials(boolean UseDefaultCredentials)-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Net.WebProxy, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Net.WebProxy- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Net.WebProxy- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebProxy
public WebProxy(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
WebProxy
public WebProxy() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, RankException, ArgumentException, ArrayTypeMismatchException, NotSupportedException, PlatformNotSupportedException, RegexParseException, InvalidOperationException
-
WebProxy
public WebProxy(java.lang.String Address, boolean BypassOnLocal, java.lang.String[] BypassList, ICredentials Credentials) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, FormatException, UnreachableException, UriFormatException, RankException, ArrayTypeMismatchException, RegexParseException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionUnreachableExceptionUriFormatExceptionRankExceptionArrayTypeMismatchExceptionRegexParseException
-
WebProxy
public WebProxy(java.lang.String Address, boolean BypassOnLocal, java.lang.String[] BypassList) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, FormatException, UnreachableException, UriFormatException, RankException, ArrayTypeMismatchException, RegexParseException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionUnreachableExceptionUriFormatExceptionRankExceptionArrayTypeMismatchExceptionRegexParseException
-
WebProxy
public WebProxy(java.lang.String Address, boolean BypassOnLocal) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, FormatException, UnreachableException, UriFormatException, RankException, ArrayTypeMismatchException, RegexParseException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionUnreachableExceptionUriFormatExceptionRankExceptionArrayTypeMismatchExceptionRegexParseException
-
WebProxy
public WebProxy(java.lang.String Host, int Port) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, FormatException, UnreachableException, UriFormatException, RankException, ArrayTypeMismatchException, RegexParseException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionUnreachableExceptionUriFormatExceptionRankExceptionArrayTypeMismatchExceptionRegexParseException
-
WebProxy
public WebProxy(java.lang.String Address) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, FormatException, UnreachableException, UriFormatException, RankException, ArrayTypeMismatchException, RegexParseException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionUnreachableExceptionUriFormatExceptionRankExceptionArrayTypeMismatchExceptionRegexParseException
-
WebProxy
public WebProxy(Uri Address, boolean BypassOnLocal, java.lang.String[] BypassList, ICredentials Credentials) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, RegexParseException, FormatException, UnreachableException
-
WebProxy
public WebProxy(Uri Address, boolean BypassOnLocal, java.lang.String[] BypassList) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, RankException, ArgumentException, ArrayTypeMismatchException, NotSupportedException, PlatformNotSupportedException, RegexParseException, InvalidOperationException
-
WebProxy
public WebProxy(Uri Address, boolean BypassOnLocal) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, RankException, ArgumentException, ArrayTypeMismatchException, NotSupportedException, PlatformNotSupportedException, RegexParseException, InvalidOperationException
-
WebProxy
public WebProxy(Uri Address) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, RankException, ArgumentException, ArrayTypeMismatchException, NotSupportedException, PlatformNotSupportedException, RegexParseException, InvalidOperationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Specified by:
getJCOClassNamein interfaceISerializable- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Specified by:
getJCOObjectNamein interfaceISerializable- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Specified by:
getJCOInstancein interfaceISerializable- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static WebProxy cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoWebProxy, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
WebProxyinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsBypassed
public boolean IsBypassed(Uri host) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, UriFormatException, UnreachableException, FormatException, SocketException, NetworkInformationException, EventSourceException, IndexOutOfRangeException, RegexParseException, NotImplementedException, RegexMatchTimeoutException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionUriFormatExceptionUnreachableExceptionFormatExceptionSocketExceptionNetworkInformationExceptionEventSourceExceptionIndexOutOfRangeExceptionRegexParseExceptionNotImplementedExceptionRegexMatchTimeoutException
-
GetDefaultProxy
public static WebProxy GetDefaultProxy() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
GetProxy
public Uri GetProxy(Uri destination) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, OutOfMemoryException, ExternalException, CultureNotFoundException, UriFormatException, FormatException, SocketException, NetworkInformationException, EventSourceException, IndexOutOfRangeException, RegexParseException, NotImplementedException, RegexMatchTimeoutException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionUriFormatExceptionFormatExceptionSocketExceptionNetworkInformationExceptionEventSourceExceptionIndexOutOfRangeExceptionRegexParseExceptionNotImplementedExceptionRegexMatchTimeoutException
-
getBypassProxyOnLocal
public boolean getBypassProxyOnLocal() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setBypassProxyOnLocal
public void setBypassProxyOnLocal(boolean BypassProxyOnLocal) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getUseDefaultCredentials
public boolean getUseDefaultCredentials() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setUseDefaultCredentials
public void setUseDefaultCredentials(boolean UseDefaultCredentials) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getBypassArrayList
public NetArrayList getBypassArrayList() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCredentials
public ICredentials getCredentials() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCredentials
public void setCredentials(ICredentials Credentials) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBypassList
public java.lang.String[] getBypassList() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArrayTypeMismatchException, InvalidCastException
-
setBypassList
public void setBypassList(java.lang.String[] BypassList) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, RegexParseException, FormatException, UnreachableException
-
getAddress
public Uri getAddress() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAddress
public void setAddress(Uri Address) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-