@Override public boolean equals(Object obj) { if( obj==this ) return true; if( obj==null || obj.getClass()!=AsciiBuffer.class ) return false; return equals((Buffer)obj); }
@Override public boolean equals(Object obj) { if( obj==this ) return true; if( obj==null || obj.getClass()!=AsciiBuffer.class ) return false; return equals((Buffer)obj); }
@Override public boolean equals(Object obj) { if( obj==this ) return true; if( obj==null || obj.getClass()!=AsciiBuffer.class ) return false; return equals((Buffer)obj); }
public AsciiBuffer getHeader(AsciiBuffer key) { if( headerList!=null ) { for (HeaderEntry HeaderEntry : headerList) { if( HeaderEntry.getKey().equals(key) ) { return HeaderEntry.getValue(); } } return null; } else { return headerMap.get(key); } }
public AsciiBuffer getHeader(AsciiBuffer key) { if( headerList!=null ) { for (HeaderEntry HeaderEntry : headerList) { if( HeaderEntry.getKey().equals(key) ) { return HeaderEntry.getValue(); } } return null; } else { return headerMap.get(key); } }
public void onMessage(StompJmsMessage message) { if (message == null) { browseDone.set(true); } else { AsciiBuffer browser = message.getFrame().headerMap().get(BROWSER); if (browser!=null && END.equals(browser)) { browseDone.set(true); } else { super.onMessage(message); } } notifyMessageAvailable(); } };
public void onMessage(StompJmsMessage message) { if (message == null) { browseDone.set(true); } else { AsciiBuffer browser = message.getFrame().headerMap().get(BROWSER); if (browser!=null && END.equals(browser)) { browseDone.set(true); } else { super.onMessage(message); } } notifyMessageAvailable(); } };
public void onTransportCommand(Object command) { StompFrame response = (StompFrame) command; if (response.action().equals(ERROR)) { cb.onFailure(new IOException("Could not connect: " + response.errorMessage())); } else if (!response.action().equals(CONNECTED)) { cb.onFailure(new IOException("Could not connect. Received unexpected frame: " + response.toString())); } else { transport.suspendRead(); cb.onSuccess(new CallbackConnection(transport, response)); } }
public void onTransportCommand(Object command) { StompFrame response = (StompFrame) command; if (response.action().equals(ERROR)) { cb.onFailure(new IOException("Could not connect: " + response.errorMessage())); } else if (!response.action().equals(CONNECTED)) { cb.onFailure(new IOException("Could not connect. Received unexpected frame: " + response.toString())); } else { transport.suspendRead(); cb.onSuccess(new CallbackConnection(transport, response)); } }
public boolean offer(StompFrame frame, boolean addContentLength) { getDispatchQueue().assertExecuting(); if( this.transport.full() ) { return false; } else { if( addContentLength && SEND.equals(frame.action()) ) { frame.addContentLengthHeader(); } return this.transport.offer(frame); } }
public boolean offer(StompFrame frame, boolean addContentLength) { getDispatchQueue().assertExecuting(); if( this.transport.full() ) { return false; } else { if( addContentLength && SEND.equals(frame.action()) ) { frame.addContentLengthHeader(); } return this.transport.offer(frame); } }
private void processStompFrame(StompFrame frame) { getDispatchQueue().assertExecuting(); AsciiBuffer action = frame.action(); if (action.equals(RECEIPT)) { AsciiBuffer id = frame.getHeader(RECEIPT_ID); if (id != null) { Callback<StompFrame> cb = this.requests.remove(id); if (cb != null) { cb.onSuccess(frame); } else { if( !toReceiver(frame) ) { processFailure(new ProtocolException("Stomp Response without a valid receipt id: " + id + " for frame " + frame)); } } } else { processFailure(new ProtocolException("Stomp Response with no receipt id: " + frame)); } } else if (action.startsWith(ERROR)) { processFailure(new ProtocolException("Received an error: " + frame.errorMessage())); } else { toReceiver(frame); } }
private void processStompFrame(StompFrame frame) { getDispatchQueue().assertExecuting(); AsciiBuffer action = frame.action(); if (action.equals(RECEIPT)) { AsciiBuffer id = frame.getHeader(RECEIPT_ID); if (id != null) { Callback<StompFrame> cb = this.requests.remove(id); if (cb != null) { cb.onSuccess(frame); } else { if( !toReceiver(frame) ) { processFailure(new ProtocolException("Stomp Response without a valid receipt id: " + id + " for frame " + frame)); } } } else { processFailure(new ProtocolException("Stomp Response with no receipt id: " + frame)); } } else if (action.startsWith(ERROR)) { processFailure(new ProtocolException("Received an error: " + frame.errorMessage())); } else { toReceiver(frame); } }
public boolean equals(Bean obj) { if (hasKey() ^ obj.hasKey() ) return false; if (hasKey() && ( getKey()!=obj.getKey() )) return false; if (hasBindingKind() ^ obj.hasBindingKind() ) return false; if (hasBindingKind() && ( !getBindingKind().equals(obj.getBindingKind()) )) return false; if (hasBindingData() ^ obj.hasBindingData() ) return false; if (hasBindingData() && ( !getBindingData().equals(obj.getBindingData()) )) return false; return true; }
public boolean equals(Bean obj) { if (hasKey() ^ obj.hasKey() ) return false; if (hasKey() && ( getKey()!=obj.getKey() )) return false; if (hasBindingKind() ^ obj.hasBindingKind() ) return false; if (hasBindingKind() && ( !getBindingKind().equals(obj.getBindingKind()) )) return false; if (hasBindingData() ^ obj.hasBindingData() ) return false; if (hasBindingData() && ( !getBindingData().equals(obj.getBindingData()) )) return false; return true; }
public boolean equals(Bean obj) { if (hasKey() ^ obj.hasKey() ) return false; if (hasKey() && ( getKey()!=obj.getKey() )) return false; if (hasBindingKind() ^ obj.hasBindingKind() ) return false; if (hasBindingKind() && ( !getBindingKind().equals(obj.getBindingKind()) )) return false; if (hasBindingData() ^ obj.hasBindingData() ) return false; if (hasBindingData() && ( !getBindingData().equals(obj.getBindingData()) )) return false; return true; }
public boolean equals(Bean obj) { if (hasKey() ^ obj.hasKey() ) return false; if (hasKey() && ( getKey()!=obj.getKey() )) return false; if (hasBindingKind() ^ obj.hasBindingKind() ) return false; if (hasBindingKind() && ( !getBindingKind().equals(obj.getBindingKind()) )) return false; if (hasBindingData() ^ obj.hasBindingData() ) return false; if (hasBindingData() && ( !getBindingData().equals(obj.getBindingData()) )) return false; return true; }
if (hasCodec() ^ obj.hasCodec() ) return false; if (hasCodec() && ( !getCodec().equals(obj.getCodec()) )) return false; if (hasSize() ^ obj.hasSize() )
if (hasCodec() ^ obj.hasCodec() ) return false; if (hasCodec() && ( !getCodec().equals(obj.getCodec()) )) return false; if (hasSize() ^ obj.hasSize() )
if (hasCodec() ^ obj.hasCodec() ) return false; if (hasCodec() && ( !getCodec().equals(obj.getCodec()) )) return false; if (hasSize() ^ obj.hasSize() )