net

Classes

goog.net.BrowserChannel
Encapsulates the logic for a single BrowserChannel.
goog.net.BrowserTestChannel
Encapsulates the logic for a single BrowserTestChannel.
goog.net.BulkLoader
Class used to load multiple URIs.
goog.net.BulkLoaderHelper
Helper class used to load multiple URIs.
goog.net.ChannelDebug
Logs and keeps a buffer of debugging info for the Channel.
goog.net.ChannelRequest
Creates a ChannelRequest object which encapsulates a request to the server. A new ChannelRequest is created for each request to the server.
goog.net.Cookies
A class for handling browser cookies.
goog.net.CorsXmlHttpFactory
A factory of XML http request objects that supports cross domain requests. This class should be instantiated and passed as the parameter of a goog.net.XhrIo constructor to allow cross-domain requests in every browser.
goog.net.CrossDomainRpc
Creates a new instance of cross domain RPC
goog.net.DefaultXmlHttpFactory
Default factory to use when creating xhr objects. You probably shouldn't be instantiating this directly, but rather using it via goog.net.XmlHttp.
goog.net.FileDownloader
A class for downloading remote files and storing them locally using the HTML5 filesystem API.
goog.net.IeCorsXhrAdapter
An adapter around Internet Explorer's XDomainRequest object that makes it look like a standard XMLHttpRequest. This can be used instead of XMLHttpRequest to support CORS.
goog.net.IframeIo
Class for managing requests via iFrames.
goog.net.IframeLoadMonitor
The correct way to determine whether a same-domain iframe has completed loading is different in IE and Firefox. This class abstracts above these differences, providing a consistent interface for:
  1. Determing if an iframe is currently loaded
  2. Listening for an iframe that is not currently loaded, to finish loading
goog.net.ImageLoader
Image loader utility class. Raises a goog.events.EventType.LOAD event for each image loaded, with an Image object as the target of the event, normalized to have naturalHeight and naturalWidth attributes. To use this class, run:
  var imageLoader = new goog.net.ImageLoader();
  goog.events.listen(imageLoader, goog.net.EventType.COMPLETE,
      function(e) { ... });
  imageLoader.addImage("image_id", "http://path/to/image.gif");
  imageLoader.start();
The start() method must be called to start image loading. Images can be added and removed after loading has started, but only those images added before start() was called will be loaded until start() is called again. A goog.net.EventType.COMPLETE event will be dispatched only once all outstanding images have completed uploading.
goog.net.IpAddress
Abstract class defining an IP Address. Please use goog.net.IpAddress static methods or goog.net.Ipv4Address/Ipv6Address classes.
goog.net.Ipv4Address
Takes a string or a number and returns a IPv4 Address. This constructor accepts strings and instance of goog.math.Integer. If you pass a goog.math.Integer, make sure that its sign is set to positive.
goog.net.Ipv6Address
Takes a string or a number and returns an IPv6 Address. This constructor accepts strings and instance of goog.math.Integer. If you pass a goog.math.Integer, make sure that its sign is set to positive.
goog.net.Jsonp
Creates a new cross domain channel that sends data to the specified host URL. By default, if no reply arrives within 5s, the channel assumes the call failed to complete successfully.
goog.net.MockIFrameIo
Mock implenetation of goog.net.IframeIo. This doesn't provide a mock implementation for all cases, but it's not too hard to add them as needed.
goog.net.MultiIframeLoadMonitor
Provides a wrapper around IframeLoadMonitor, to allow the caller to wait for multiple iframes to load.
goog.net.NetworkStatusMonitor
Base class for network status information providers.
goog.net.NetworkTester
Creates an instance of goog.net.NetworkTester which can be used to test for internet connectivity by seeing if an image can be loaded from google.com. It can also be tested with other URLs.
goog.net.WebChannel
A WebChannel represents a logical bi-directional channel over which the client communicates with a remote server that holds the other endpoint of the channel. A WebChannel is always created in the context of a shared WebChannelTransport instance. It is up to the underlying client-side and server-side implementations to decide how or when multiplexing is to be enabled.
goog.net.WebChannelTransport
A WebChannelTransport instance represents a shared context of logical connectivity between a browser client and a remote origin. Over a single WebChannelTransport instance, multiple WebChannels may be created against different URLs, which may all share the same underlying connectivity (i.e. TCP connection) whenever possible. When multi-domains are supported, such as CORS, multiple origins may be supported over a single WebChannelTransport instance at the same time. Sharing between different window contexts such as tabs is not addressed by WebChannelTransport. Applications may choose HTML5 shared workers or other techniques to access the same transport instance across different window contexts.
goog.net.WebSocket
Class encapsulating the logic for using a WebSocket.
goog.net.WrapperXmlHttpFactory
An xhr factory subclass which can be constructed using two factory methods. This exists partly to allow the preservation of goog.net.XmlHttp.setFactory() with an unchanged signature.
goog.net.XhrIo
Basic class for handling XMLHttpRequests.
goog.net.XhrIoPool
A pool of XhrIo objects.
goog.net.XhrLike
Interface for the common parts of XMLHttpRequest. Mostly copied from externs/w3c_xml.js.
goog.net.XhrManager
A manager of an XhrIoPool.
goog.net.XmlHttpFactory
Abstract base class for an XmlHttpRequest factory.

Public Protected Private

Enumerations

goog.net.ErrorCode :
Error codes
Constants:
ABORT
No description.
ACCESS_DENIED
No description.
CUSTOM_ERROR
No description.
EXCEPTION
No description.
FF_SILENT_ERROR
No description.
FILE_NOT_FOUND
No description.
HTTP_ERROR
No description.
NO_ERROR
No description.
OFFLINE
No description.
TIMEOUT
No description.
getDebugMessage
No description.
Code »
goog.net.EventType :
Event names for network events
Constants:
ABORT
No description.
COMPLETE
No description.
ERROR
No description.
INCREMENTAL_DATA
No description.
PROGRESS
No description.
READY
No description.
READY_STATE_CHANGE
No description.
SUCCESS
No description.
TIMEOUT
No description.
Code »
goog.net.HttpStatus :
HTTP Status Codes defined in RFC 2616.
Constants:
ACCEPTED
No description.
BAD_GATEWAY
No description.
BAD_REQUEST
No description.
CONFLICT
No description.
CONTINUE
No description.
CREATED
No description.
EXPECTATION_FAILED
No description.
FORBIDDEN
No description.
FOUND
No description.
GATEWAY_TIMEOUT
No description.
GONE
No description.
HTTP_VERSION_NOT_SUPPORTED
No description.
INTERNAL_SERVER_ERROR
No description.
LENGTH_REQUIRED
No description.
METHOD_NOT_ALLOWED
No description.
MOVED_PERMANENTLY
No description.
MULTIPLE_CHOICES
No description.
NON_AUTHORITATIVE_INFORMATION
No description.
NOT_ACCEPTABLE
No description.
NOT_FOUND
No description.
NOT_IMPLEMENTED
No description.
NOT_MODIFIED
No description.
NO_CONTENT
No description.
OK
No description.
PARTIAL_CONTENT
No description.
PAYMENT_REQUIRED
No description.
PRECONDITION_FAILED
No description.
PROXY_AUTHENTICATION_REQUIRED
No description.
QUIRK_IE_NO_CONTENT
No description.
REQUEST_ENTITY_TOO_LARGE
No description.
REQUEST_RANGE_NOT_SATISFIABLE
No description.
REQUEST_TIMEOUT
No description.
REQUEST_URI_TOO_LONG
No description.
RESET_CONTENT
No description.
SEE_OTHER
No description.
SERVICE_UNAVAILABLE
No description.
SWITCHING_PROTOCOLS
No description.
TEMPORARY_REDIRECT
No description.
UNAUTHORIZED
No description.
UNSUPPORTED_MEDIA_TYPE
No description.
USE_PROXY
No description.
isSuccess
No description.
Code »

Global Functions

iframeLoaderTestCase.fakeLoadMonitor&goog.net.IframeLoadMonitor()
No description.
code »
goog.net.XmlHttp() !goog.net.XhrLike.OrNative
Static class for creating XMLHttpRequest objects.
Returns: !goog.net.XhrLike.OrNative  A new XMLHttpRequest object.
code »
setupStubXMLHttpRequest&goog.net.XmlHttp()
No description.
code »
goog.net.createWebChannelTransport() !goog.net.WebChannelTransport
Create a new WebChannelTransport instance using the default implementation.
Returns: !goog.net.WebChannelTransport  the newly created transport instance.
code »

Global Properties

goog.net.BrowserChannelTest :
No description.
Code »
goog.net.BulkLoaderTest :
No description.
Code »
goog.net.ChannelRequestTest :
No description.
Code »
goog.net.CorsXmlHttpFactoryTest :
No description.
Code »
goog.net.CrossDomainRpcTest :
No description.
Code »
goog.net.FileDownloaderTest :
No description.
Code »
goog.net.IframeIoTest :
No description.
Code »
goog.net.IframeLoadMonitorTest :
No description.
Code »
goog.net.ImageLoaderTest :
No description.
Code »
goog.net.IpAddressTest :
No description.
Code »
goog.net.JsonpTest :
No description.
Code »
goog.net.MultiIframeLoadMonitorTest :
No description.
Code »
goog.net.NetworkTesterTest :
No description.
Code »
goog.net.WebSocketTest :
No description.
Code »
goog.net.XhrIoTest :
No description.
Code »
goog.net.XhrManagerTest :
No description.
Code »
goog.net.XmlHttpDefines :
No description.
Code »
goog.net.cookies : goog.net.Cookies
A static default instance.
Code »
goog.net.cookiesTest :
No description.
Code »
goog.net.iframeIoDifferentBaseTest :
No description.
Code »
goog.net.iframeXhrTest :
No description.
Code »
goog.net.jsloader :
No description.
Code »
goog.net.jsloaderTest :
No description.
Code »
goog.net.testdata :
No description.
Code »
goog.net.tmpnetwork :
No description.
Code »
goog.net.xpc :
No description.
Code »

Package net

Package Reference