The goog.net.ChannelDebug Class

goog.net.ChannelDebug()

Logs and keeps a buffer of debugging info for the Channel.

.browserOfflineResponse(url)

Logs that the browser went offline during the lifetime of a request.

url {goog.Uri}
The URL being requested.

.debug(text)

Logs a debug message.

text {string}
The message.

.dumpException(e, opt_msg)

Logs an exception

e {Error}
The error or error event.
opt_msg {string=}
The optional message, defaults to 'Exception'.

.getLogger()

Gets the logger used by this ChannelDebug.

returns {goog.debug.Logger}
The logger used by this ChannelDebug.

.info(text)

Logs an info message.

text {string}
The message.

.severe(text)

Logs a severe message.

text {string}
The message.

.timeoutResponse(uri)

Logs a request timeout.

uri {goog.Uri}
The uri that timed out.

.tridentChannelRequest(verb, uri, id, attempt)

Logs a Trident ActiveX request.

verb {string}
The request type (GET/POST).
uri {goog.Uri}
The request destination.
id {string|number|undefined}
The request id.
attempt {number}
Which attempt # the request was.

.tridentChannelResponseDone(id, successful)

Logs the done response received from a Trident ActiveX request.

id {string|number|undefined}
The request id.
successful {boolean}
Whether the request was successful.

.tridentChannelResponseText(id, responseText)

Logs the response text received from a Trident ActiveX request.

id {string|number|undefined}
The request id.
responseText {string}
The response text.

.warning(text)

Logs a warning message.

text {string}
The message.

.xmlHttpChannelRequest(verb, uri, id, attempt, postData)

Logs an XmlHttp request..

verb {string}
The request type (GET/POST).
uri {goog.Uri}
The request destination.
id {string|number|undefined}
The request id.
attempt {number}
Which attempt # the request was.
postData {?string}
The data posted in the request.

.xmlHttpChannelResponseMetaData(verb, uri, id, attempt, readyState, statusCode)

Logs the meta data received from an XmlHttp request.

verb {string}
The request type (GET/POST).
uri {goog.Uri}
The request destination.
id {string|number|undefined}
The request id.
attempt {number}
Which attempt # the request was.
readyState {goog.net.XmlHttp.ReadyState}
The ready state.
statusCode {number}
The HTTP status code.

.xmlHttpChannelResponseText(id, responseText, opt_desc)

Logs the response data received from an XmlHttp request.

id {string|number|undefined}
The request id.
responseText {?string}
The response text.
opt_desc {?string=}
Optional request description.