Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/Response.java @ 983:23ec25435b8c
simplify AbstractGenerator
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 16 Oct 2016 22:58:41 -0600 |
parents | dbecd7faa1f5 |
children | 688c39c50ee3 |
comparison
equal
deleted
inserted
replaced
982:dbecd7faa1f5 | 983:23ec25435b8c |
---|---|
888 /* | 888 /* |
889 * @see javax.servlet.ServletResponse#setBufferSize(int) | 889 * @see javax.servlet.ServletResponse#setBufferSize(int) |
890 */ | 890 */ |
891 public void setBufferSize(int size) | 891 public void setBufferSize(int size) |
892 { | 892 { |
893 if (isCommitted() || getContentCount()>0) | 893 throw new UnsupportedOperationException(); |
894 throw new IllegalStateException("Committed or content written"); | |
895 _connection._generator.increaseContentBufferSize(size); | |
896 } | 894 } |
897 | 895 |
898 /* ------------------------------------------------------------ */ | 896 /* ------------------------------------------------------------ */ |
899 /* | 897 /* |
900 * @see javax.servlet.ServletResponse#getBufferSize() | 898 * @see javax.servlet.ServletResponse#getBufferSize() |