1 //
2 //  ========================================================================
3 //  Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
4 //  ------------------------------------------------------------------------
5 //  All rights reserved. This program and the accompanying materials
6 //  are made available under the terms of the Eclipse Public License v1.0
7 //  and Apache License v2.0 which accompanies this distribution.
8 //
9 //      The Eclipse Public License is available at
10 //      http://www.eclipse.org/legal/epl-v10.html
11 //
12 //      The Apache License v2.0 is available at
13 //      http://www.opensource.org/licenses/apache2.0.php
14 //
15 //  You may elect to redistribute this code under either of these licenses.
16 //  ========================================================================
17 //
18 
19 package org.eclipse.jetty.http;
20 
21 import org.eclipse.jetty.io.Buffers;
22 import org.eclipse.jetty.io.BuffersFactory;
23 import org.eclipse.jetty.util.component.AbstractLifeCycle;
24 
25 /* ------------------------------------------------------------ */
26 /** Abstract Buffer pool.
27  */
28 public interface HttpBuffers
29 {
30     /**
31      * @return the requestBufferSize
32      */
getRequestBufferSize()33     public int getRequestBufferSize();
34 
35     /**
36      * @param requestBufferSize the requestBufferSize to set
37      */
setRequestBufferSize(int requestBufferSize)38     public void setRequestBufferSize(int requestBufferSize);
39 
40     /**
41      * @return the requestHeaderSize
42      */
getRequestHeaderSize()43     public int getRequestHeaderSize();
44 
45     /**
46      * @param requestHeaderSize the requestHeaderSize to set
47      */
setRequestHeaderSize(int requestHeaderSize)48     public void setRequestHeaderSize(int requestHeaderSize);
49 
50     /**
51      * @return the responseBufferSize
52      */
getResponseBufferSize()53     public int getResponseBufferSize();
54 
55     /**
56      * @param responseBufferSize the responseBufferSize to set
57      */
setResponseBufferSize(int responseBufferSize)58     public void setResponseBufferSize(int responseBufferSize);
59 
60     /**
61      * @return the responseHeaderSize
62      */
getResponseHeaderSize()63     public int getResponseHeaderSize();
64 
65     /**
66      * @param responseHeaderSize the responseHeaderSize to set
67      */
setResponseHeaderSize(int responseHeaderSize)68     public void setResponseHeaderSize(int responseHeaderSize);
69 
70     /**
71      * @return the requestBufferType
72      */
getRequestBufferType()73     public Buffers.Type getRequestBufferType();
74 
75     /**
76      * @return the requestHeaderType
77      */
getRequestHeaderType()78     public Buffers.Type getRequestHeaderType();
79 
80     /**
81      * @return the responseBufferType
82      */
getResponseBufferType()83     public Buffers.Type getResponseBufferType();
84 
85     /**
86      * @return the responseHeaderType
87      */
getResponseHeaderType()88     public Buffers.Type getResponseHeaderType();
89 
90     /**
91      * @param requestBuffers the requestBuffers to set
92      */
setRequestBuffers(Buffers requestBuffers)93     public void setRequestBuffers(Buffers requestBuffers);
94 
95     /**
96      * @param responseBuffers the responseBuffers to set
97      */
setResponseBuffers(Buffers responseBuffers)98     public void setResponseBuffers(Buffers responseBuffers);
99 
getRequestBuffers()100     public Buffers getRequestBuffers();
101 
getResponseBuffers()102     public Buffers getResponseBuffers();
103 
setMaxBuffers(int maxBuffers)104     public void setMaxBuffers(int maxBuffers);
105 
getMaxBuffers()106     public int getMaxBuffers();
107 
108 }
109