Class URLConnection
public class URLConnection : JVMBridgeBase<URLConnection>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<URLConnection>URLConnection
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<URLConnection>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<URLConnection>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<URLConnection>.IsAssignableFrom(IJavaType)JVMBridgeBase<URLConnection>.IsAssignableFrom<T>()JVMBridgeBase<URLConnection>.Execute<T>(params T[])JVMBridgeBase<URLConnection>.DynBridgeClazzJVMBridgeBase<URLConnection>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
URLConnection()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("URLConnection class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public URLConnection()
URLConnection(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("URLConnection class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public URLConnection(params object[] args)
Parameters
args
object[]
Properties
AllowUserInteraction
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getAllowUserInteraction() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setAllowUserInteraction(boolean)
public bool AllowUserInteraction { get; set; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
ConnectTimeout
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getConnectTimeout() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setConnectTimeout(int)
public int ConnectTimeout { get; set; }
Property Value
Content
public object Content { get; }
Property Value
ContentEncoding
public String ContentEncoding { get; }
Property Value
ContentLength
public int ContentLength { get; }
Property Value
ContentLengthLong
public long ContentLengthLong { get; }
Property Value
ContentType
public String ContentType { get; }
Property Value
Date
public long Date { get; }
Property Value
DefaultAllowUserInteraction
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getDefaultAllowUserInteraction() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setDefaultAllowUserInteraction(boolean)
public static bool DefaultAllowUserInteraction { get; set; }
Property Value
DefaultUseCaches
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getDefaultUseCaches() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setDefaultUseCaches(boolean)
public bool DefaultUseCaches { get; set; }
Property Value
DoInput
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getDoInput() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setDoInput(boolean)
public bool DoInput { get; set; }
Property Value
DoOutput
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getDoOutput() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setDoOutput(boolean)
public bool DoOutput { get; set; }
Property Value
Expiration
public long Expiration { get; }
Property Value
FileNameMap
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getFileNameMap() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setFileNameMap(java.net.FileNameMap)
public static FileNameMap FileNameMap { get; set; }
Property Value
HeaderFields
public Map<String, List<String>> HeaderFields { get; }
Property Value
IfModifiedSince
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getIfModifiedSince() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setIfModifiedSince(long)
public long IfModifiedSince { get; set; }
Property Value
InputStream
public InputStream InputStream { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
LastModified
public long LastModified { get; }
Property Value
OutputStream
public OutputStream OutputStream { get; }
Property Value
Permission
public Permission Permission { get; }
Property Value
ReadTimeout
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getReadTimeout() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setReadTimeout(int)
public int ReadTimeout { get; set; }
Property Value
RequestProperties
public Map<String, List<String>> RequestProperties { get; }
Property Value
URL
public URL URL { get; }
Property Value
UseCaches
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#getUseCaches() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html#setUseCaches(boolean)
public bool UseCaches { get; set; }
Property Value
Methods
AddRequestProperty(String, String)
public void AddRequestProperty(String arg0, String arg1)
Parameters
Connect()
public void Connect()
Exceptions
GetContent(Class[])
public object GetContent(Class[] arg0)
Parameters
Returns
Exceptions
GetDefaultUseCaches(String)
public static bool GetDefaultUseCaches(String arg0)
Parameters
Returns
GetHeaderField(String)
public String GetHeaderField(String arg0)
Parameters
Returns
GetHeaderField(int)
public String GetHeaderField(int arg0)
Parameters
Returns
GetHeaderFieldDate(String, long)
public long GetHeaderFieldDate(String arg0, long arg1)
Parameters
Returns
GetHeaderFieldInt(String, int)
public int GetHeaderFieldInt(String arg0, int arg1)
Parameters
Returns
GetHeaderFieldKey(int)
public String GetHeaderFieldKey(int arg0)
Parameters
Returns
GetHeaderFieldLong(String, long)
public long GetHeaderFieldLong(String arg0, long arg1)
Parameters
Returns
GetRequestProperty(String)
public String GetRequestProperty(String arg0)
Parameters
Returns
GuessContentTypeFromName(String)
public static String GuessContentTypeFromName(String arg0)
Parameters
Returns
GuessContentTypeFromStream(InputStream)
public static String GuessContentTypeFromStream(InputStream arg0)
Parameters
arg0
InputStream
Returns
Exceptions
SetContentHandlerFactory(ContentHandlerFactory)
public static void SetContentHandlerFactory(ContentHandlerFactory arg0)
Parameters
SetDefaultUseCaches(String, bool)
public static void SetDefaultUseCaches(String arg0, bool arg1)
Parameters
SetRequestProperty(String, String)
public void SetRequestProperty(String arg0, String arg1)