public int getMaxDataLength() { return wireFormat.getMaxDataLength(); }
public int getMaxDataLength() { return wireFormat.getMaxDataLength(); }
public int getMaxDataLength() { return wireFormat.getMaxDataLength(); }
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; }
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; }
if (baos == null) { baos = new ByteArrayOutputStream(); } else if (baos.size() > getMaxDataLength()) { throw new ProtocolException("The maximum data length was exceeded", true); } else {
if (baos == null) { baos = new ByteArrayOutputStream(); } else if (baos.size() > getMaxDataLength()) { throw new ProtocolException("The maximum data length was exceeded", true); } else {
if (baos == null) { baos = new ByteArrayOutputStream(); } else if (baos.size() > getMaxDataLength()) { throw new ProtocolException("The maximum data length was exceeded", true); } else {
} else { currentCommand.write(b); if (currentCommand.size() > wireFormat.getMaxDataLength()) { StompFrameError errorFrame = new StompFrameError(new ProtocolException("The maximum data length was exceeded", true)); errorFrame.setAction(this.action);
} else { currentCommand.write(b); if (currentCommand.size() > wireFormat.getMaxDataLength()) { StompFrameError errorFrame = new StompFrameError(new ProtocolException("The maximum data length was exceeded", true)); errorFrame.setAction(this.action);
} else { currentCommand.write(b); if (currentCommand.size() > wireFormat.getMaxDataLength()) { StompFrameError errorFrame = new StompFrameError(new ProtocolException("The maximum data length was exceeded", true)); errorFrame.setAction(this.action);