@Override public MessageAck onStompMessageNack(String messageId, TransactionId transactionId) throws ProtocolException { throw new ProtocolException("Cannot Nack a message on a Queue Browser Subscription."); }
public ProtocolException(String s, boolean fatal, Throwable cause) { super(s); this.fatal = fatal; initCause(cause); }
onStompDisconnect(command); } else { throw new ProtocolException("Unknown STOMP action: " + action, true); handleException(e, command); if (e.isFatal()) { getStompTransport().onException(e);
onStompDisconnect(command); } else { throw new ProtocolException("Unknown STOMP action: " + action, true); handleException(e, command); if (e.isFatal()) { getStompTransport().onException(e);
@Override public MessageAck onStompMessageNack(String messageId, TransactionId transactionId) throws ProtocolException { throw new ProtocolException("Cannot Nack a message on a Queue Browser Subscription."); }
onStompDisconnect(command); } else { throw new ProtocolException("Unknown STOMP action: " + action, true); handleException(e, command); if (e.isFatal()) { getStompTransport().onException(e);
public ProtocolException(String s, boolean fatal, Throwable cause) { super(s); this.fatal = fatal; initCause(cause); }
@Override public MessageAck onStompMessageNack(String messageId, TransactionId transactionId) throws ProtocolException { throw new ProtocolException("Cannot Nack a message on a Queue Browser Subscription."); }
onStompDisconnect(command); } else { throw new ProtocolException("Unknown STOMP action: " + action); handleException(e, command); if( e.isFatal() ) { getStompTransport().onException(e);
public ProtocolException(String s, boolean fatal, Throwable cause) { super(s); this.fatal = fatal; initCause(cause); }
protected void checkConnected() throws ProtocolException { if (!connected.get()) { throw new ProtocolException("Not connected."); } }
public ProtocolException(String s, boolean fatal, Throwable cause) { super(s); this.fatal = fatal; initCause(cause); }
protected void checkConnected() throws ProtocolException { if (!connected.get()) { throw new ProtocolException("Not connected."); } }
protected void checkConnected() throws ProtocolException { if (!connected.get()) { throw new ProtocolException("Not connected."); } }
protected void checkConnected() throws ProtocolException { if (!connected.get()) { throw new ProtocolException("Not connected."); } }
protected int parseContentLength(String contentLength) throws ProtocolException { int length; try { length = Integer.parseInt(contentLength.trim()); } catch (NumberFormatException e) { throw new ProtocolException("Specified content-length is not a valid integer", true); } if (length > MAX_DATA_LENGTH) { throw new ProtocolException("The maximum data length was exceeded", true); } return length; }
protected int parseContentLength(String contentLength) throws ProtocolException { int length; try { length = Integer.parseInt(contentLength.trim()); } catch (NumberFormatException e) { throw new ProtocolException("Specified content-length is not a valid integer", true); } if (length > MAX_DATA_LENGTH) { throw new ProtocolException("The maximum data length was exceeded", true); } return length; }
protected int parseContentLength(String contentLength) throws ProtocolException { int length; try { length = Integer.parseInt(contentLength.trim()); } catch (NumberFormatException e) { throw new ProtocolException("Specified content-length is not a valid integer", true); } if (length > MAX_DATA_LENGTH) { throw new ProtocolException("The maximum data length was exceeded", true); } return length; }
protected int parseContentLength(String contentLength, AtomicLong frameSize) throws ProtocolException { int length; try { length = Integer.parseInt(contentLength.trim()); } catch (NumberFormatException e) { throw new ProtocolException("Specified content-length is not a valid integer", true); } if (length > getMaxDataLength()) { throw new ProtocolException("The maximum data length was exceeded", true); } if (frameSize.addAndGet(length) > getMaxFrameSize()) { throw new ProtocolException("The maximum frame size was exceeded", true); } return length; }
protected int parseContentLength(String contentLength, AtomicLong frameSize) throws ProtocolException { int length; try { length = Integer.parseInt(contentLength.trim()); } catch (NumberFormatException e) { throw new ProtocolException("Specified content-length is not a valid integer", true); } if (length > getMaxDataLength()) { throw new ProtocolException("The maximum data length was exceeded", true); } if (frameSize.addAndGet(length) > getMaxFrameSize()) { throw new ProtocolException("The maximum frame size was exceeded", true); } return length; }