Class HttpURLConnection
public class HttpURLConnection : URLConnection, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
- Inheritance
-
HttpURLConnection
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
HttpURLConnection(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public HttpURLConnection(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
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; set; }
Property Value
HTTP_BAD_GATEWAY
public static int HTTP_BAD_GATEWAY { get; set; }
Property Value
HTTP_BAD_METHOD
public static int HTTP_BAD_METHOD { get; set; }
Property Value
HTTP_BAD_REQUEST
public static int HTTP_BAD_REQUEST { get; set; }
Property Value
HTTP_CLIENT_TIMEOUT
public static int HTTP_CLIENT_TIMEOUT { get; set; }
Property Value
HTTP_CONFLICT
public static int HTTP_CONFLICT { get; set; }
Property Value
HTTP_CREATED
public static int HTTP_CREATED { get; set; }
Property Value
HTTP_ENTITY_TOO_LARGE
public static int HTTP_ENTITY_TOO_LARGE { get; set; }
Property Value
HTTP_FORBIDDEN
public static int HTTP_FORBIDDEN { get; set; }
Property Value
HTTP_GATEWAY_TIMEOUT
public static int HTTP_GATEWAY_TIMEOUT { get; set; }
Property Value
HTTP_GONE
public static int HTTP_GONE { get; set; }
Property Value
HTTP_INTERNAL_ERROR
public static int HTTP_INTERNAL_ERROR { get; set; }
Property Value
HTTP_LENGTH_REQUIRED
public static int HTTP_LENGTH_REQUIRED { get; set; }
Property Value
HTTP_MOVED_PERM
public static int HTTP_MOVED_PERM { get; set; }
Property Value
HTTP_MOVED_TEMP
public static int HTTP_MOVED_TEMP { get; set; }
Property Value
HTTP_MULT_CHOICE
public static int HTTP_MULT_CHOICE { get; set; }
Property Value
HTTP_NOT_ACCEPTABLE
public static int HTTP_NOT_ACCEPTABLE { get; set; }
Property Value
HTTP_NOT_AUTHORITATIVE
public static int HTTP_NOT_AUTHORITATIVE { get; set; }
Property Value
HTTP_NOT_FOUND
public static int HTTP_NOT_FOUND { get; set; }
Property Value
HTTP_NOT_IMPLEMENTED
public static int HTTP_NOT_IMPLEMENTED { get; set; }
Property Value
HTTP_NOT_MODIFIED
public static int HTTP_NOT_MODIFIED { get; set; }
Property Value
HTTP_NO_CONTENT
public static int HTTP_NO_CONTENT { get; set; }
Property Value
HTTP_OK
public static int HTTP_OK { get; set; }
Property Value
HTTP_PARTIAL
public static int HTTP_PARTIAL { get; set; }
Property Value
HTTP_PAYMENT_REQUIRED
public static int HTTP_PAYMENT_REQUIRED { get; set; }
Property Value
HTTP_PRECON_FAILED
public static int HTTP_PRECON_FAILED { get; set; }
Property Value
HTTP_PROXY_AUTH
public static int HTTP_PROXY_AUTH { get; set; }
Property Value
HTTP_REQ_TOO_LONG
public static int HTTP_REQ_TOO_LONG { get; set; }
Property Value
HTTP_RESET
public static int HTTP_RESET { get; set; }
Property Value
HTTP_SEE_OTHER
public static int HTTP_SEE_OTHER { get; set; }
Property Value
HTTP_SERVER_ERROR
[Obsolete("Deprecated in JVM")]
public static int HTTP_SERVER_ERROR { get; set; }
Property Value
HTTP_UNAUTHORIZED
public static int HTTP_UNAUTHORIZED { get; set; }
Property Value
HTTP_UNAVAILABLE
public static int HTTP_UNAVAILABLE { get; set; }
Property Value
HTTP_UNSUPPORTED_TYPE
public static int HTTP_UNSUPPORTED_TYPE { get; set; }
Property Value
HTTP_USE_PROXY
public static int HTTP_USE_PROXY { get; set; }
Property Value
HTTP_VERSION
public static int HTTP_VERSION { get; set; }
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 java.lang.AutoCloseable
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()