Java.Net.URLConnection: Method Members

The methods of Java.Net.URLConnection are listed below. For a list of all members, see the URLConnection Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

AddRequestProperty(string, string)
Adds the given property to the request header.
abstract
Connect()
Opens a connection to the resource.
ConnectAsync() : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
GetContent(Java.Lang.Class[]) : Java.Lang.Object
Returns an object representing the content of the resource this URLConnection is connected to.
static
GetDefaultRequestProperty(string) : string
Returns null.
GetHeaderField(int) : string
Returns the header value at the field position pos or null if the header has fewer than pos fields.
GetHeaderField(string) : string
Returns the value of the header field specified by key or null if there is no field with this name.
GetHeaderFieldDate(string, long) : long
Returns the specified header value as a date in milliseconds since January 1, 1970 GMT.
GetHeaderFieldInt(string, int) : int
Returns the specified header value as a number.
GetHeaderFieldKey(int) : string
Returns the name of the header field at the given position posn or null if there are fewer than posn fields.
GetHeaderFieldLong(string, long) : long
Documentation for this section has not yet been entered.
GetRequestProperty(string) : 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) : string
Determines the MIME-type of the given resource url by resolving the filename extension with the internal FileNameMap.
static
GuessContentTypeFromStream(System.IO.Stream) : string
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.