org.glassfish.grizzly.http
Class HttpPacket

java.lang.Object
  extended by org.glassfish.grizzly.http.HttpPacket
All Implemented Interfaces:
Cacheable
Direct Known Subclasses:
HttpContent, HttpHeader

public abstract class HttpPacket
extends Object
implements Cacheable

Abstraction, which represents any type of HTTP message: HttpRequestPacket, HttpResponsePacket, HttpContent.

Author:
Alexey Stashok
See Also:
HttpRequestPacket, HttpResponsePacket, HttpContent

Constructor Summary
HttpPacket()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.grizzly.Cacheable
recycle
 

Constructor Detail

HttpPacket

public HttpPacket()
Method Detail

isHttp

public static boolean isHttp(Object packet)
Returns true if passed Object is a HttpPacket.

Parameters:
packet -
Returns:
true if passed Object is a HttpPacket.

isHeader

public abstract boolean isHeader()
Returns true, if this HTTP message represents HTTP message header, or false otherwise.

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


Copyright © 2012 Oracle Corporation. All Rights Reserved.