Table of Contents

Class URLConnection

Namespace
Java.Net
Assembly
MASES.JNet.dll
public class URLConnection : JVMBridgeBase<URLConnection>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<URLConnection>
URLConnection
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<URLConnection>.IsAssignableFrom(IJavaType)
JVMBridgeBase<URLConnection>.IsAssignableFrom<T>()
JVMBridgeBase<URLConnection>.Execute<T>(params T[])
JVMBridgeBase<URLConnection>.DynBridgeClazz
JVMBridgeBase<URLConnection>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

public bool AllowUserInteraction { get; set; }

Property Value

bool

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

ConnectTimeout

public int ConnectTimeout { get; set; }

Property Value

int

Content

public object Content { get; }

Property Value

object

ContentEncoding

public String ContentEncoding { get; }

Property Value

String

ContentLength

public int ContentLength { get; }

Property Value

int

ContentLengthLong

public long ContentLengthLong { get; }

Property Value

long

ContentType

public String ContentType { get; }

Property Value

String

Date

public long Date { get; }

Property Value

long

DefaultAllowUserInteraction

public static bool DefaultAllowUserInteraction { get; set; }

Property Value

bool

DefaultUseCaches

public bool DefaultUseCaches { get; set; }

Property Value

bool

DoInput

public bool DoInput { get; set; }

Property Value

bool

DoOutput

public bool DoOutput { get; set; }

Property Value

bool

Expiration

public long Expiration { get; }

Property Value

long

FileNameMap

public static FileNameMap FileNameMap { get; set; }

Property Value

FileNameMap

HeaderFields

public Map<String, List<String>> HeaderFields { get; }

Property Value

Map<String, List<String>>

IfModifiedSince

public long IfModifiedSince { get; set; }

Property Value

long

InputStream

public InputStream InputStream { get; }

Property Value

InputStream

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

LastModified

public long LastModified { get; }

Property Value

long

OutputStream

public OutputStream OutputStream { get; }

Property Value

OutputStream

Permission

public Permission Permission { get; }

Property Value

Permission

ReadTimeout

public int ReadTimeout { get; set; }

Property Value

int

RequestProperties

public Map<String, List<String>> RequestProperties { get; }

Property Value

Map<String, List<String>>

URL

public URL URL { get; }

Property Value

URL

UseCaches

public bool UseCaches { get; set; }

Property Value

bool

Methods

AddRequestProperty(String, String)

public void AddRequestProperty(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Connect()

public void Connect()

Exceptions

IOException

GetContent(Class[])

public object GetContent(Class[] arg0)

Parameters

arg0 Class[]

Class

Returns

object

object

Exceptions

IOException

GetDefaultUseCaches(String)

public static bool GetDefaultUseCaches(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

GetHeaderField(String)

public String GetHeaderField(String arg0)

Parameters

arg0 String

String

Returns

String

String

GetHeaderField(int)

public String GetHeaderField(int arg0)

Parameters

arg0 int

int

Returns

String

String

GetHeaderFieldDate(String, long)

public long GetHeaderFieldDate(String arg0, long arg1)

Parameters

arg0 String

String

arg1 long

long

Returns

long

long

GetHeaderFieldInt(String, int)

public int GetHeaderFieldInt(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

int

int

GetHeaderFieldKey(int)

public String GetHeaderFieldKey(int arg0)

Parameters

arg0 int

int

Returns

String

String

GetHeaderFieldLong(String, long)

public long GetHeaderFieldLong(String arg0, long arg1)

Parameters

arg0 String

String

arg1 long

long

Returns

long

long

GetRequestProperty(String)

public String GetRequestProperty(String arg0)

Parameters

arg0 String

String

Returns

String

String

GuessContentTypeFromName(String)

public static String GuessContentTypeFromName(String arg0)

Parameters

arg0 String

String

Returns

String

String

GuessContentTypeFromStream(InputStream)

public static String GuessContentTypeFromStream(InputStream arg0)

Parameters

arg0 InputStream

InputStream

Returns

String

String

Exceptions

IOException

SetContentHandlerFactory(ContentHandlerFactory)

public static void SetContentHandlerFactory(ContentHandlerFactory arg0)

Parameters

arg0 ContentHandlerFactory

ContentHandlerFactory

SetDefaultUseCaches(String, bool)

public static void SetDefaultUseCaches(String arg0, bool arg1)

Parameters

arg0 String

String

arg1 bool

bool

SetRequestProperty(String, String)

public void SetRequestProperty(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String