diff src/org/eclipse/jetty/http/Generator.java @ 877:fef4392f4905

remove sendServerVersion
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Oct 2016 14:36:51 -0600
parents 3428c60d7cfc
children
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/Generator.java	Tue Oct 04 14:05:45 2016 -0600
+++ b/src/org/eclipse/jetty/http/Generator.java	Tue Oct 04 14:36:51 2016 -0600
@@ -25,72 +25,70 @@
 
 public interface Generator
 {
-    public static final boolean LAST=true;
-    public static final boolean MORE=false;
-
-    /* ------------------------------------------------------------ */
-    /**
-     * Add content.
-     * 
-     * @param content
-     * @param last
-     * @throws IllegalArgumentException if <code>content</code> is {@link Buffer#isImmutable immutable}.
-     * @throws IllegalStateException If the request is not expecting any more content,
-     *   or if the buffers are full and cannot be flushed.
-     * @throws IOException if there is a problem flushing the buffers.
-     */
-    void addContent(Buffer content, boolean last) throws IOException;
+	public static final boolean LAST=true;
+	public static final boolean MORE=false;
 
-    void complete() throws IOException;
-
-    void completeHeader(HttpFields responseFields, boolean last) throws IOException;
-
-    int flushBuffer() throws IOException;
-
-    int getContentBufferSize();
+	/* ------------------------------------------------------------ */
+	/**
+	 * Add content.
+	 * 
+	 * @param content
+	 * @param last
+	 * @throws IllegalArgumentException if <code>content</code> is {@link Buffer#isImmutable immutable}.
+	 * @throws IllegalStateException If the request is not expecting any more content,
+	 *   or if the buffers are full and cannot be flushed.
+	 * @throws IOException if there is a problem flushing the buffers.
+	 */
+	void addContent(Buffer content, boolean last) throws IOException;
 
-    long getContentWritten();
+	void complete() throws IOException;
+
+	void completeHeader(HttpFields responseFields, boolean last) throws IOException;
+
+	int flushBuffer() throws IOException;
 
-    boolean isWritten();
-    
-    boolean isAllContentWritten();
+	int getContentBufferSize();
+
+	long getContentWritten();
 
-    void increaseContentBufferSize(int size);
-    
-    boolean isBufferFull();
+	boolean isWritten();
+	
+	boolean isAllContentWritten();
 
-    boolean isCommitted();
-
-    boolean isComplete();
+	void increaseContentBufferSize(int size);
+	
+	boolean isBufferFull();
 
-    boolean isPersistent();
+	boolean isCommitted();
 
-    void reset();
+	boolean isComplete();
 
-    void resetBuffer();
-    
-    void returnBuffers();
+	boolean isPersistent();
+
+	void reset();
 
-    void sendError(int code, String reason, String content, boolean close) throws IOException;
-    
-    void setHead(boolean head);
+	void resetBuffer();
+	
+	void returnBuffers();
 
-    void setRequest(String method, String uri);
-
-    void setResponse(int status, String reason);
+	void sendError(int code, String reason, String content, boolean close) throws IOException;
+	
+	void setHead(boolean head);
 
+	void setRequest(String method, String uri);
 
-    void setSendServerVersion(boolean sendServerVersion);
- 
-    void setVersion(int version);
+	void setResponse(int status, String reason);
 
-    boolean isIdle();
+ 
+	void setVersion(int version);
+
+	boolean isIdle();
 
-    void setContentLength(long length);
-    
-    void setPersistent(boolean persistent);
+	void setContentLength(long length);
+	
+	void setPersistent(boolean persistent);
 
-    void setDate(Buffer timeStampBuffer);
-    
+	void setDate(Buffer timeStampBuffer);
+	
 
 }