Table of Contents

Class HttpURLConnection

Namespace
Java.Net
Assembly
MASES.Netdroid.dll
public class HttpURLConnection : URLConnection, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<URLConnection>
HttpURLConnection
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

HttpURLConnection()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("HttpURLConnection 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 HttpURLConnection()

HttpURLConnection(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("HttpURLConnection 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 HttpURLConnection(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

HTTP_ACCEPTED

public static int HTTP_ACCEPTED { get; }

Property Value

int

HTTP_BAD_GATEWAY

public static int HTTP_BAD_GATEWAY { get; }

Property Value

int

HTTP_BAD_METHOD

public static int HTTP_BAD_METHOD { get; }

Property Value

int

HTTP_BAD_REQUEST

public static int HTTP_BAD_REQUEST { get; }

Property Value

int

HTTP_CLIENT_TIMEOUT

public static int HTTP_CLIENT_TIMEOUT { get; }

Property Value

int

HTTP_CONFLICT

public static int HTTP_CONFLICT { get; }

Property Value

int

HTTP_CREATED

public static int HTTP_CREATED { get; }

Property Value

int

HTTP_ENTITY_TOO_LARGE

public static int HTTP_ENTITY_TOO_LARGE { get; }

Property Value

int

HTTP_FORBIDDEN

public static int HTTP_FORBIDDEN { get; }

Property Value

int

HTTP_GATEWAY_TIMEOUT

public static int HTTP_GATEWAY_TIMEOUT { get; }

Property Value

int

HTTP_GONE

public static int HTTP_GONE { get; }

Property Value

int

HTTP_INTERNAL_ERROR

public static int HTTP_INTERNAL_ERROR { get; }

Property Value

int

HTTP_LENGTH_REQUIRED

public static int HTTP_LENGTH_REQUIRED { get; }

Property Value

int

HTTP_MOVED_PERM

public static int HTTP_MOVED_PERM { get; }

Property Value

int

HTTP_MOVED_TEMP

public static int HTTP_MOVED_TEMP { get; }

Property Value

int

HTTP_MULT_CHOICE

public static int HTTP_MULT_CHOICE { get; }

Property Value

int

HTTP_NOT_ACCEPTABLE

public static int HTTP_NOT_ACCEPTABLE { get; }

Property Value

int

HTTP_NOT_AUTHORITATIVE

public static int HTTP_NOT_AUTHORITATIVE { get; }

Property Value

int

HTTP_NOT_FOUND

public static int HTTP_NOT_FOUND { get; }

Property Value

int

HTTP_NOT_IMPLEMENTED

public static int HTTP_NOT_IMPLEMENTED { get; }

Property Value

int

HTTP_NOT_MODIFIED

public static int HTTP_NOT_MODIFIED { get; }

Property Value

int

HTTP_NO_CONTENT

public static int HTTP_NO_CONTENT { get; }

Property Value

int

HTTP_OK

public static int HTTP_OK { get; }

Property Value

int

HTTP_PARTIAL

public static int HTTP_PARTIAL { get; }

Property Value

int

HTTP_PAYMENT_REQUIRED

public static int HTTP_PAYMENT_REQUIRED { get; }

Property Value

int

HTTP_PRECON_FAILED

public static int HTTP_PRECON_FAILED { get; }

Property Value

int

HTTP_PROXY_AUTH

public static int HTTP_PROXY_AUTH { get; }

Property Value

int

HTTP_REQ_TOO_LONG

public static int HTTP_REQ_TOO_LONG { get; }

Property Value

int

HTTP_RESET

public static int HTTP_RESET { get; }

Property Value

int

HTTP_SEE_OTHER

public static int HTTP_SEE_OTHER { get; }

Property Value

int

HTTP_SERVER_ERROR

[Obsolete]
public static int HTTP_SERVER_ERROR { get; }

Property Value

int

HTTP_UNAUTHORIZED

public static int HTTP_UNAUTHORIZED { get; }

Property Value

int

HTTP_UNAVAILABLE

public static int HTTP_UNAVAILABLE { get; }

Property Value

int

HTTP_UNSUPPORTED_TYPE

public static int HTTP_UNSUPPORTED_TYPE { get; }

Property Value

int

HTTP_USE_PROXY

public static int HTTP_USE_PROXY { get; }

Property Value

int

HTTP_VERSION

public static int HTTP_VERSION { get; }

Property Value

int

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

Methods

Disconnect()

public void Disconnect()

GetErrorStream()

public InputStream GetErrorStream()

Returns

InputStream

InputStream

GetFollowRedirects()

public static bool GetFollowRedirects()

Returns

bool

bool

GetInstanceFollowRedirects()

public bool GetInstanceFollowRedirects()

Returns

bool

bool

GetRequestMethod()

public String GetRequestMethod()

Returns

String

String

GetResponseCode()

public int GetResponseCode()

Returns

int

int

Exceptions

IOException

GetResponseMessage()

public String GetResponseMessage()

Returns

String

String

Exceptions

IOException

SetAuthenticator(Authenticator)

public void SetAuthenticator(Authenticator arg0)

Parameters

arg0 Authenticator

Authenticator

SetChunkedStreamingMode(int)

public void SetChunkedStreamingMode(int arg0)

Parameters

arg0 int

int

SetFixedLengthStreamingMode(int)

public void SetFixedLengthStreamingMode(int arg0)

Parameters

arg0 int

int

SetFixedLengthStreamingMode(long)

public void SetFixedLengthStreamingMode(long arg0)

Parameters

arg0 long

long

SetFollowRedirects(bool)

public static void SetFollowRedirects(bool arg0)

Parameters

arg0 bool

bool

SetInstanceFollowRedirects(bool)

public void SetInstanceFollowRedirects(bool arg0)

Parameters

arg0 bool

bool

SetRequestMethod(String)

public void SetRequestMethod(String arg0)

Parameters

arg0 String

String

Exceptions

ProtocolException

UsingProxy()

public bool UsingProxy()

Returns

bool

bool