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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: Systemstatic 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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System- 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, ArgumentException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SecurityException
-
WebProxy
public WebProxy(java.lang.String Address) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, FormatException, SecurityException, MemberAccessException, NullReferenceException, UriFormatException, OutOfMemoryException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionUriFormatExceptionOutOfMemoryExceptionNotSupportedException
-
WebProxy
public WebProxy(java.lang.String Address, boolean BypassOnLocal) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, FormatException, SecurityException, MemberAccessException, NullReferenceException, UriFormatException, OutOfMemoryException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionUriFormatExceptionOutOfMemoryExceptionNotSupportedException
-
WebProxy
public WebProxy(java.lang.String Address, boolean BypassOnLocal, java.lang.String[] BypassList) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, FormatException, SecurityException, MemberAccessException, NullReferenceException, UriFormatException, OutOfMemoryException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionUriFormatExceptionOutOfMemoryExceptionNotSupportedException
-
WebProxy
public WebProxy(java.lang.String Address, boolean BypassOnLocal, java.lang.String[] BypassList, ICredentials Credentials) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, FormatException, SecurityException, MemberAccessException, NullReferenceException, UriFormatException, OutOfMemoryException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionUriFormatExceptionOutOfMemoryExceptionNotSupportedException
-
WebProxy
public WebProxy(java.lang.String Host, int Port) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, SecurityException, MemberAccessException, NullReferenceException, ConfigurationException, UriFormatException, OutOfMemoryException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionConfigurationExceptionUriFormatExceptionOutOfMemoryExceptionNotSupportedException
-
WebProxy
public WebProxy(Uri Address) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SecurityException
-
WebProxy
public WebProxy(Uri Address, boolean BypassOnLocal) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SecurityException
-
WebProxy
public WebProxy(Uri Address, boolean BypassOnLocal, java.lang.String[] BypassList) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SecurityException
-
WebProxy
public WebProxy(Uri Address, boolean BypassOnLocal, java.lang.String[] BypassList, ICredentials Credentials) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NullReferenceException, ObjectDisposedException, RankException, NotSupportedException, SecurityException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionNullReferenceExceptionObjectDisposedExceptionRankExceptionNotSupportedExceptionSecurityExceptionNotImplementedException
-
-
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, ArgumentNullException, ArgumentException, SocketException, MissingManifestResourceException, InvalidOperationException, ObjectDisposedException, ArgumentOutOfRangeException, SecurityException, UriFormatException, OutOfMemoryException, IndexOutOfRangeException, FormatException, MissingMethodException, TargetInvocationException, NotSupportedException, NetworkInformationException, CultureNotFoundException, RegexMatchTimeoutException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSocketExceptionMissingManifestResourceExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionSecurityExceptionUriFormatExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNetworkInformationExceptionCultureNotFoundExceptionRegexMatchTimeoutException
-
GetDefaultProxy
public static WebProxy GetDefaultProxy() throws java.lang.Throwable, ArgumentException, ArgumentNullException, SocketException, InvalidOperationException, ArgumentOutOfRangeException, SecurityException, OutOfMemoryException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
-
GetProxy
public Uri GetProxy(Uri destination) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SocketException, MissingManifestResourceException, InvalidOperationException, ObjectDisposedException, ArgumentOutOfRangeException, SecurityException, IndexOutOfRangeException, UriFormatException, OutOfMemoryException, FormatException, MissingMethodException, TargetInvocationException, NotSupportedException, NetworkInformationException, RegexMatchTimeoutException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSocketExceptionMissingManifestResourceExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionSecurityExceptionIndexOutOfRangeExceptionUriFormatExceptionOutOfMemoryExceptionFormatExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNetworkInformationExceptionRegexMatchTimeoutException
-
getBypassProxyOnLocal
public boolean getBypassProxyOnLocal() throws java.lang.Throwable, ArgumentException, ArgumentNullException, SocketException, InvalidOperationException, ObjectDisposedException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionSocketExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityException
-
setBypassProxyOnLocal
public void setBypassProxyOnLocal(boolean BypassProxyOnLocal) throws java.lang.Throwable, ArgumentException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullException
-
getUseDefaultCredentials
public boolean getUseDefaultCredentials() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setUseDefaultCredentials
public void setUseDefaultCredentials(boolean UseDefaultCredentials) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException, IndexOutOfRangeException, NullReferenceException, ArgumentOutOfRangeException, NotSupportedException
-
getBypassArrayList
public NetArrayList getBypassArrayList() throws java.lang.Throwable, ArgumentException, ArgumentNullException, SocketException, InvalidOperationException, ObjectDisposedException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionSocketExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityException
-
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, ArgumentException, ArgumentNullException, SocketException, InvalidOperationException, ObjectDisposedException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NotSupportedException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionSocketExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionNotSupportedException
-
setBypassList
public void setBypassList(java.lang.String[] BypassList) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NullReferenceException, ObjectDisposedException, RankException, NotSupportedException, SecurityException, NotImplementedException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionNullReferenceExceptionObjectDisposedExceptionRankExceptionNotSupportedExceptionSecurityExceptionNotImplementedException
-
getAddress
public Uri getAddress() throws java.lang.Throwable, ArgumentException, ArgumentNullException, SocketException, InvalidOperationException, ObjectDisposedException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionSocketExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityException
-
setAddress
public void setAddress(Uri Address) throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullException
-
-