/**@class android.webkit.WebResourceResponse @extends java.lang.Object Encapsulates a resource response. Applications can return an instance of this class from {@link android.webkit.WebViewClient#shouldInterceptRequest} to provide a custom response when the WebView requests a particular resource. */ var WebResourceResponse = { /**Sets the resource response's MIME type, for example "text/html". @param {String} mimeType The resource response's MIME type */ setMimeType : function( ) {}, /**Gets the resource response's MIME type. @return {String} The resource response's MIME type */ getMimeType : function( ) {}, /**Sets the resource response's encoding, for example "UTF-8". This is used to decode the data from the input stream. @param {String} encoding The resource response's encoding */ setEncoding : function( ) {}, /**Gets the resource response's encoding. @return {String} The resource response's encoding */ getEncoding : function( ) {}, /**Sets the resource response's status code and reason phrase. @param {Number} statusCode the status code needs to be in the ranges [100, 299], [400, 599]. Causing a redirect by specifying a 3xx code is not supported. @param {String} reasonPhrase the phrase describing the status code, for example "OK". Must be non-null and not empty. */ setStatusCodeAndReasonPhrase : function( ) {}, /**Gets the resource response's status code. @return {Number} The resource response's status code. */ getStatusCode : function( ) {}, /**Gets the description of the resource response's status code. @return {String} The description of the resource response's status code. */ getReasonPhrase : function( ) {}, /**Sets the headers for the resource response. @param {Object {java.util.Map}} headers Mapping of header name -> header value. */ setResponseHeaders : function( ) {}, /**Gets the headers for the resource response. @return {Object {java.util.Map}} The headers for the resource response. */ getResponseHeaders : function( ) {}, /**Sets the input stream that provides the resource response's data. Callers must implement {@link InputStream#read(byte[]) InputStream.read(byte[])}. @param {Object {InputStream}} data the input stream that provides the resource response's data. Must not be a StringBufferInputStream. */ setData : function( ) {}, /**Gets the input stream that provides the resource response's data. @return {Object {java.io.InputStream}} The input stream that provides the resource response's data */ getData : function( ) {}, };