Top Description Constructors Methods
org.glassfish.grizzly.http

public abstract Class HttpPacket

extends Object
implements Cacheable
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.Cacheable
Known Direct Subclasses
org.glassfish.grizzly.http.HttpContent, org.glassfish.grizzly.http.HttpHeader
Imports
org.glassfish.grizzly.Cacheable

Abstraction, which represents any type of HTTP message: HttpRequestPacket, HttpResponsePacket, HttpContent.
Author
Alexey Stashok
See Also
HttpRequestPacket, HttpResponsePacket, HttpContent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract HttpHeader

Returns:

HttpHeader.
getHttpHeader
()

Get the HTTP message header, associated with this HTTP packet.

public abstract boolean

Returns:

true, if this HTTP message represents HTTP message header, or false otherwise.
isHeader
()

Returns true, if this HTTP message represents HTTP message header, or false otherwise.

public static boolean

Returns:

true if passed Object is a HttpPacket.
isHttp
(final Object packet)

Returns true if passed Object is a HttpPacket.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HttpPacketback to summary
public HttpPacket()

Method Detail

getHttpHeaderback to summary
public abstract HttpHeader getHttpHeader()

Get the HTTP message header, associated with this HTTP packet.

Returns:HttpHeader

HttpHeader.

isHeaderback to summary
public abstract boolean isHeader()

Returns true, if this HTTP message represents HTTP message header, or false otherwise.

Returns:boolean

true, if this HTTP message represents HTTP message header, or false otherwise.

isHttpback to summary
public static boolean isHttp(final Object packet)

Returns true if passed Object is a HttpPacket.

Returns:boolean

true if passed Object is a HttpPacket.