com.github.nkzawa.engineio.client.transports
Class PollingXHR

java.lang.Object
  extended by com.github.nkzawa.emitter.Emitter
      extended by com.github.nkzawa.engineio.client.Transport
          extended by com.github.nkzawa.engineio.client.transports.Polling
              extended by com.github.nkzawa.engineio.client.transports.PollingXHR

public class PollingXHR
extends Polling


Nested Class Summary
static class PollingXHR.Request
           
 
Nested classes/interfaces inherited from class com.github.nkzawa.engineio.client.Transport
Transport.Options, Transport.ReadyState
 
Nested classes/interfaces inherited from class com.github.nkzawa.emitter.Emitter
Emitter.Listener
 
Field Summary
 
Fields inherited from class com.github.nkzawa.engineio.client.transports.Polling
EVENT_POLL, EVENT_POLL_COMPLETE, NAME
 
Fields inherited from class com.github.nkzawa.engineio.client.Transport
EVENT_CLOSE, EVENT_DRAIN, EVENT_ERROR, EVENT_OPEN, EVENT_PACKET, EVENT_REQUEST_HEADERS, EVENT_RESPONSE_HEADERS, hostname, name, path, port, query, readyState, secure, socket, sslContext, timestampParam, timestampRequests, timestamps, writable
 
Constructor Summary
PollingXHR(Transport.Options opts)
           
 
Method Summary
protected  void doPoll()
           
protected  void doWrite(byte[] data, Runnable fn)
           
protected  PollingXHR.Request request()
           
protected  PollingXHR.Request request(PollingXHR.Request.Options opts)
           
 
Methods inherited from class com.github.nkzawa.engineio.client.transports.Polling
doClose, doOpen, onData, onData, pause, uri, write
 
Methods inherited from class com.github.nkzawa.engineio.client.Transport
close, onClose, onError, onOpen, onPacket, open, send
 
Methods inherited from class com.github.nkzawa.emitter.Emitter
emit, hasListeners, listeners, off, off, off, on, once
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollingXHR

public PollingXHR(Transport.Options opts)
Method Detail

request

protected PollingXHR.Request request()

request

protected PollingXHR.Request request(PollingXHR.Request.Options opts)

doWrite

protected void doWrite(byte[] data,
                       Runnable fn)
Specified by:
doWrite in class Polling

doPoll

protected void doPoll()
Specified by:
doPoll in class Polling


Copyright © 2014. All rights reserved.