Package org.cometd.common

Examples of org.cometd.common.TransportException


        }

        @Override
        protected boolean transportSend(TransportListener listener, List<Message.Mutable> messages)
        {
            failMessages(new TransportException(null), messages);
            return false;
        }
View Full Code Here


        {
            _webSocketSupported = false;
            Map<String, Object> failure = new HashMap<>(2);
            failure.put("websocketCode", 1002);
            failure.put("httpCode", x.getResponseStatusCode());
            listener.onFailure(new TransportException(x, failure), messages);
        }
        catch (Throwable x)
        {
            _webSocketSupported = isStickyReconnect() && _webSocketConnected;
            listener.onFailure(x, messages);
View Full Code Here

                    else
                    {
                        Map<String, Object> failure = new HashMap<>(2);
                        // Convert the 200 into 204 (no content)
                        failure.put("httpCode", 204);
                        TransportException x = new TransportException(failure);
                        listener.onFailure(x, messages);
                    }
                }
                else
                {
                    Map<String, Object> failure = new HashMap<>(2);
                    failure.put("httpCode", status);
                    TransportException x = new TransportException(failure);
                    listener.onFailure(x, messages);
                }
            }
        });
    }
View Full Code Here

                updateBayeuxClientState(new BayeuxClientStateUpdater()
                {
                    public BayeuxClientState create(BayeuxClientState oldState)
                    {
                        onTransportFailure(oldState.transport.getName(), null, new TransportException(null));
                        return new DisconnectedState(oldState.transport);
                    }

                    @Override
                    public void postCreate()
View Full Code Here

TOP

Related Classes of org.cometd.common.TransportException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.