public abstract class HttpPacket extends Object implements Cacheable
HttpRequestPacket
,
HttpResponsePacket
, HttpContent
.HttpRequestPacket
,
HttpResponsePacket
,
HttpContent
Constructor and Description |
---|
HttpPacket() |
Modifier and Type | Method and Description |
---|---|
abstract HttpHeader |
getHttpHeader()
Get the HTTP message header, associated with this HTTP packet.
|
abstract boolean |
isHeader()
Returns true, if this HTTP message represents HTTP message header,
or false otherwise.
|
static boolean |
isHttp(Object packet)
Returns true if passed
Object is a HttpPacket. |
public static boolean isHttp(Object packet)
Object
is a HttpPacket.packet
- Object
is a HttpPacket.public abstract boolean isHeader()
public abstract HttpHeader getHttpHeader()
HttpHeader
.Copyright © 2015 Oracle Corporation. All rights reserved.