Class HttpFrame
- java.lang.Object
-
- org.smallmind.web.reverse.http1_1.HttpFrame
-
- Direct Known Subclasses:
HttpRequestFrame,HttpResponseFrame
public abstract class HttpFrame extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpFrame(HttpProtocolInputStream httpProtocolInputStream, String version)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddHeader(HttpHeader header)voidaddHeader(HttpHeader header, boolean prepend)abstract HttpDirectiongetDirection()HttpHeadergetHeader(String name)List<HttpHeader>getHeaders()StringgetVersion()HttpHeaderremoveHeader(String name)
-
-
-
Constructor Detail
-
HttpFrame
public HttpFrame(HttpProtocolInputStream httpProtocolInputStream, String version) throws IOException, ProtocolException
- Throws:
IOExceptionProtocolException
-
-
Method Detail
-
getDirection
public abstract HttpDirection getDirection()
-
getVersion
public String getVersion()
-
getHeader
public HttpHeader getHeader(String name)
-
addHeader
public void addHeader(HttpHeader header)
-
addHeader
public void addHeader(HttpHeader header, boolean prepend)
-
removeHeader
public HttpHeader removeHeader(String name)
-
getHeaders
public List<HttpHeader> getHeaders()
-
-