FileDocCategorySizeDatePackage
WebResourceRequest.javaAPI DocAndroid 5.1 API1879Thu Mar 12 22:22:10 GMT 2015android.webkit

WebResourceRequest

public interface WebResourceRequest
Encompasses parameters to the {@link WebViewClient#shouldInterceptRequest} method.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetMethod()
Gets the method associated with the request, for example "GET".

return
the method associated with the request.

public java.util.MapgetRequestHeaders()
Gets the headers associated with the request. These are represented as a mapping of header name to header value.

return
the headers associated with the request.

public android.net.UrigetUrl()
Gets the URL for which the resource request was made.

return
the URL for which the resource request was made.

public booleanhasGesture()
Gets whether a gesture (such as a click) was associated with the request.

return
whether a gesture was associated with the request.

public booleanisForMainFrame()
Gets whether the request was made for the main frame.

return
whether the request was made for the main frame. Will be false for iframes, for example.