goog.net.BrowserChannel.Handler
Provided By |
---|
Abstract base class for the browser channel handler
new Handler()
Parameters | None. |
---|
Instance Methods
this.badMapError( browserChannel, map ) → void
void
Called by the channel if enumeration of the map throws an exception.
Parameters |
|
---|
this.channelClosed( browserChannel, opt_pendingMaps, opt_undeliveredMaps ) → void
void
Indicates the BrowserChannel is closed. Also notifies about which maps, if any, that may not have been delivered to the server.
Parameters |
|
---|
this.channelError( browserChannel, error ) → void
void
Indicates an error occurred on the BrowserChannel.
Parameters |
|
---|
this.channelHandleArray( browserChannel, array ) → void
void
New input is available for the application to process.
Parameters |
|
---|
this.channelOpened( browserChannel ) → void
void
Indicates the BrowserChannel has successfully negotiated with the server and can now send and receive data.
Parameters |
|
---|
this.channelSuccess( browserChannel, deliveredMaps ) → void
void
Indicates maps were successfully sent on the BrowserChannel.
Parameters |
|
---|
this.correctHostPrefix( serverHostPrefix ) → (string|null)
(string|null)
this.getAdditionalParams( browserChannel ) → Object
Object
Gets any parameters that should be added at the time another connection is made to the server.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.getNetworkTestImageUri( browserChannel ) → (goog.Uri|null)
(goog.Uri|null)
Gets the URI of an image that can be used to test network connectivity.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.isActive( browserChannel ) → boolean
boolean
Gets whether this channel is currently active. This is used to determine the length of time to wait before retrying.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.okToMakeRequest( browserChannel ) → goog.net.BrowserChannel.Error
goog.net.BrowserChannel.Error
Whether it's okay to make a request to the server. A handler can return false if the channel should fail. For example, if the user has logged out, the handler may want all requests to fail immediately.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
Instance Properties
this.channelHandleMultipleArrays → (function(goog.net.BrowserChannel, Array<Array<?>>): ?|null)
(function(goog.net.BrowserChannel, Array<Array<?>>): ?|null)
Callback handler for when a batch of response arrays is received from the server.