Java.Net.ResponseCache.Put Method
Allows the protocol handler to cache data after retrieving resources.

Syntax

[Android.Runtime.Register("put", "(Ljava/net/URI;Ljava/net/URLConnection;)Ljava/net/CacheRequest;", "GetPut_Ljava_net_URI_Ljava_net_URLConnection_Handler")]
public abstract CacheRequest Put (URI uri, URLConnection conn)

Parameters

uri
the reference to the requested resource.
connection
the connection to fetch the response.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif an I/O error occurs while adding the resource.
Java.Lang.IllegalArgumentExceptionif any one of the parameters is set to null.

Remarks

Allows the protocol handler to cache data after retrieving resources. The ResponseCache decides whether the resource data should be cached or not. If so, this method returns a CacheRequest to write the resource data to. Otherwise, this method returns null.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1