The members of Java.Net.URLConnection are listed below.
See Also: Inherited members from Java.Lang.Object
Creates a new URLConnection instance pointing to the resource specified by the given URL. | ||
A constructor used when creating managed representations of JNI objects; called by the runtime. |
AllowUserInteraction | bool. Returns allowUserInteraction. | |
ConnectTimeout | int. Returns the connect timeout in milliseconds. | |
[read-only] | Content | Java.Lang.Object. Returns an object representing the content of the resource this URLConnection is connected to. |
[read-only] | ContentEncoding | string. Returns the content encoding type specified by the response header field content-encoding or null if this field is not set. |
[read-only] | ContentLength | int. Returns the content length in bytes specified by the response header field content-length or -1 if this field is not set or cannot be represented as an int. |
[read-only] | ContentLengthLong | long. Documentation for this section has not yet been entered. |
[read-only] | ContentType | string. Returns the MIME-type of the content specified by the response header field content-type or null if type is unknown. |
[read-only] | Date | long. Returns the timestamp when this response has been sent as a date in milliseconds since January 1, 1970 GMT or 0 if this timestamp is unknown. |
static | DefaultAllowUserInteraction | bool. Returns the default value of allowUserInteraction. |
DefaultUseCaches | bool. Returns the default setting whether this connection allows using caches. | |
DoInput | bool. Returns the value of the option doInput which specifies whether this connection allows to receive data. | |
DoOutput | bool. Returns the value of the option doOutput which specifies whether this connection allows to send data. | |
[read-only] | Expiration | long. Returns the timestamp when this response will be expired in milliseconds since January 1, 1970 GMT or 0 if this timestamp is unknown. |
static | FileNameMap | IFileNameMap. Returns the table which is used by all URLConnection instances to determine the MIME-type according to a file extension. |
[read-only] | HeaderFields | IDictionary<string, IList<string>>. Returns an unmodifiable map of the response-header fields and values. |
IfModifiedSince | long. Returns the point of time since when the data must be modified to be transmitted. | |
[read-only] | InputStream | System.IO.Stream. Returns an InputStream for reading data from the resource pointed by this URLConnection. |
[read-only] | LastModified | long. Returns the value of the response header field last-modified or 0 if this value is not set. |
[read-only] | OutputStream | System.IO.Stream. Returns an OutputStream for writing data to this URLConnection. |
[read-only] | Permission | Java.Security.Permission. Returns a Permission object representing all needed permissions to open this connection. |
ReadTimeout | int. Returns the read timeout in milliseconds, or 0 if reads never timeout. | |
[read-only] | RequestProperties | IDictionary<string, IList<string>>. Returns an unmodifiable map of general request properties used by this connection. |
[read-only] | URL | URL. Returns the URL represented by this URLConnection. |
UseCaches | bool. Returns the value of the flag which specifies whether this URLConnection allows to use caches. |
Connected | bool. Specifies whether this URLConnection is already connected to the remote resource. | |
[read-only] override | ThresholdClass | IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
[read-only] override | ThresholdType | Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Url | URL. The URL which represents the remote target of this URLConnection. |
AddRequestProperty(string, string)Adds the given property to the request header. | ||
abstract | Connect()Opens a connection to the resource. | |
ConnectAsync()Documentation for this section has not yet been entered. | ||
GetContent(Java.Lang.Class[])Returns an object representing the content of the resource this URLConnection is connected to. | ||
static | GetDefaultRequestProperty(string)Returns null. | |
GetHeaderField(int)Returns the header value at the field position pos or null if the header has fewer than pos fields. | ||
GetHeaderField(string)Returns the value of the header field specified by key or null if there is no field with this name. | ||
GetHeaderFieldDate(string, long)Returns the specified header value as a date in milliseconds since January 1, 1970 GMT. | ||
GetHeaderFieldInt(string, int)Returns the specified header value as a number. | ||
GetHeaderFieldKey(int)Returns the name of the header field at the given position posn or null if there are fewer than posn fields. | ||
GetHeaderFieldLong(string, long)Documentation for this section has not yet been entered. | ||
GetRequestProperty(string)Returns the value of the request header property specified by {code field} or null if there is no field with this name. | ||
static | GuessContentTypeFromName(string)Determines the MIME-type of the given resource url by resolving the filename extension with the internal FileNameMap. | |
static | GuessContentTypeFromStream(System.IO.Stream)Determines the MIME-type of the resource represented by the input stream is by reading its first few characters. | |
static | SetContentHandlerFactory(IContentHandlerFactory)Sets the internally used content handler factory. | |
static | SetDefaultRequestProperty(string, string)Does nothing. | |
SetRequestProperty(string, string)Sets the value of the specified request header field. |