Class AbstractHttpClientTransport

    • Constructor Detail

      • AbstractHttpClientTransport

        @Deprecated
        protected AbstractHttpClientTransport​(java.lang.String url,
                                              java.util.Map<java.lang.String,​java.lang.Object> options)
        Parameters:
        url - the CometD server URL
        options - the transport options
      • AbstractHttpClientTransport

        protected AbstractHttpClientTransport​(java.lang.String url,
                                              java.util.Map<java.lang.String,​java.lang.Object> options,
                                              java.util.concurrent.ScheduledExecutorService scheduler)
    • Method Detail

      • accept

        public boolean accept​(java.lang.String bayeuxVersion)
        Specified by:
        accept in class ClientTransport
      • abort

        public void abort​(java.lang.Throwable failure)
        Description copied from class: ClientTransport
        Aborts this transport, usually by cancelling all pending Bayeux messages that require a response, such as /meta/connects, without waiting for a response.
        Specified by:
        abort in class ClientTransport
        Parameters:
        failure - the cause of the abort
        See Also:
        BayeuxClient.abort()
      • isAborted

        protected boolean isAborted()
      • getMaxMessageSize

        public int getMaxMessageSize()
      • isAppendMessageType

        protected boolean isAppendMessageType()
      • newRequestURI

        protected java.lang.String newRequestURI​(java.util.List<Message.Mutable> messages)
      • getAdvice

        protected java.util.Map<java.lang.String,​java.lang.Object> getAdvice()
      • setAdvice

        protected void setAdvice​(java.util.Map<java.lang.String,​java.lang.Object> advice)
      • calculateMaxNetworkDelay

        protected long calculateMaxNetworkDelay​(java.util.List<Message.Mutable> messages)
      • processResponseContent

        protected void processResponseContent​(TransportListener listener,
                                              java.util.List<Message.Mutable> requestMessages,
                                              java.lang.String content)