Class HttpURLConnection
public class HttpURLConnection : URLConnection, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
HttpURLConnection
- Implements
- Derived
- Inherited Members
-
JVMBridgeBase<URLConnection>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<URLConnection>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<URLConnection>.SExecuteWithSignatureArray<TArrayType>(string, string, params object[])
- 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(IJVMBridgeBaseInitializer)
Internal constructor: used internally from JCOBridge
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public HttpURLConnection(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
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
argsobject[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
ErrorStream
public InputStream ErrorStream { get; }
Property Value
FollowRedirects
https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html#getFollowRedirects-- https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html#setFollowRedirects-boolean-
public static bool FollowRedirects { get; set; }
Property Value
HTTP_ACCEPTED
public static int HTTP_ACCEPTED { get; }
Property Value
HTTP_BAD_GATEWAY
public static int HTTP_BAD_GATEWAY { get; }
Property Value
HTTP_BAD_METHOD
public static int HTTP_BAD_METHOD { get; }
Property Value
HTTP_BAD_REQUEST
public static int HTTP_BAD_REQUEST { get; }
Property Value
HTTP_CLIENT_TIMEOUT
public static int HTTP_CLIENT_TIMEOUT { get; }
Property Value
HTTP_CONFLICT
public static int HTTP_CONFLICT { get; }
Property Value
HTTP_CREATED
public static int HTTP_CREATED { get; }
Property Value
HTTP_ENTITY_TOO_LARGE
public static int HTTP_ENTITY_TOO_LARGE { get; }
Property Value
HTTP_FORBIDDEN
public static int HTTP_FORBIDDEN { get; }
Property Value
HTTP_GATEWAY_TIMEOUT
public static int HTTP_GATEWAY_TIMEOUT { get; }
Property Value
HTTP_GONE
public static int HTTP_GONE { get; }
Property Value
HTTP_INTERNAL_ERROR
public static int HTTP_INTERNAL_ERROR { get; }
Property Value
HTTP_LENGTH_REQUIRED
public static int HTTP_LENGTH_REQUIRED { get; }
Property Value
HTTP_MOVED_PERM
public static int HTTP_MOVED_PERM { get; }
Property Value
HTTP_MOVED_TEMP
public static int HTTP_MOVED_TEMP { get; }
Property Value
HTTP_MULT_CHOICE
public static int HTTP_MULT_CHOICE { get; }
Property Value
HTTP_NOT_ACCEPTABLE
public static int HTTP_NOT_ACCEPTABLE { get; }
Property Value
HTTP_NOT_AUTHORITATIVE
public static int HTTP_NOT_AUTHORITATIVE { get; }
Property Value
HTTP_NOT_FOUND
public static int HTTP_NOT_FOUND { get; }
Property Value
HTTP_NOT_IMPLEMENTED
public static int HTTP_NOT_IMPLEMENTED { get; }
Property Value
HTTP_NOT_MODIFIED
public static int HTTP_NOT_MODIFIED { get; }
Property Value
HTTP_NO_CONTENT
public static int HTTP_NO_CONTENT { get; }
Property Value
HTTP_OK
public static int HTTP_OK { get; }
Property Value
HTTP_PARTIAL
public static int HTTP_PARTIAL { get; }
Property Value
HTTP_PAYMENT_REQUIRED
public static int HTTP_PAYMENT_REQUIRED { get; }
Property Value
HTTP_PRECON_FAILED
public static int HTTP_PRECON_FAILED { get; }
Property Value
HTTP_PROXY_AUTH
public static int HTTP_PROXY_AUTH { get; }
Property Value
HTTP_REQ_TOO_LONG
public static int HTTP_REQ_TOO_LONG { get; }
Property Value
HTTP_RESET
public static int HTTP_RESET { get; }
Property Value
HTTP_SEE_OTHER
public static int HTTP_SEE_OTHER { get; }
Property Value
HTTP_UNAUTHORIZED
public static int HTTP_UNAUTHORIZED { get; }
Property Value
HTTP_UNAVAILABLE
public static int HTTP_UNAVAILABLE { get; }
Property Value
HTTP_UNSUPPORTED_TYPE
public static int HTTP_UNSUPPORTED_TYPE { get; }
Property Value
HTTP_USE_PROXY
public static int HTTP_USE_PROXY { get; }
Property Value
HTTP_VERSION
public static int HTTP_VERSION { get; }
Property Value
InstanceFollowRedirects
https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html#getInstanceFollowRedirects-- https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html#setInstanceFollowRedirects-boolean-
public bool InstanceFollowRedirects { get; set; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
RequestMethod
https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html#getRequestMethod-- https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html#setRequestMethod-java.lang.String-
public String RequestMethod { get; set; }
Property Value
ResponseCode
public int ResponseCode { get; }
Property Value
ResponseMessage
public String ResponseMessage { get; }
Property Value
Methods
Disconnect()
public void Disconnect()
SetChunkedStreamingMode(int)
public void SetChunkedStreamingMode(int arg0)
Parameters
SetFixedLengthStreamingMode(int)
public void SetFixedLengthStreamingMode(int arg0)
Parameters
SetFixedLengthStreamingMode(long)
public void SetFixedLengthStreamingMode(long arg0)
Parameters
UsingProxy()
public bool UsingProxy()