org.jnetpcap.protocol.application
Class Html

java.lang.Object
  extended by org.jnetpcap.nio.JMemory
      extended by org.jnetpcap.nio.JBuffer
          extended by org.jnetpcap.packet.JHeader
              extended by org.jnetpcap.protocol.application.Html
All Implemented Interfaces:
JPayloadAccessor

@Header(nicname="Html",
        suite=APPLICATION)
public class Html
extends JHeader

Hyper Text Markup Language header definition.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class Html.HtmlTag
          Html tag instance parsed from the html document
static class Html.Tag
          Table of supported HTML tags.
 
Nested classes/interfaces inherited from class org.jnetpcap.packet.JHeader
JHeader.State
 
Nested classes/interfaces inherited from class org.jnetpcap.nio.JMemory
JMemory.Type
 
Field Summary
 
Fields inherited from class org.jnetpcap.packet.JHeader
annotatedHeader, BYTE, EMPTY_HEADER_ARRAY, isSubHeader, packet, state
 
Fields inherited from class org.jnetpcap.nio.JMemory
JNETPCAP_LIBRARY_NAME, POINTER
 
Constructor Summary
Html()
           
 
Method Summary
static boolean bind2Http(JPacket packet, Http http)
           
static boolean bind2HttpAsCSS(JPacket packet, Http http)
           
protected  void decodeHeader()
          Allows a header to decode its complex fields
static int headerLength(JBuffer buffer, int offset)
           
 Html.HtmlTag[] links()
           
 java.lang.String page()
           
 int pageLength()
           
 Html.HtmlTag[] tags()
           
 java.lang.String toString()
          Gets a string with summary information about the header.
 
Methods inherited from class org.jnetpcap.packet.JHeader
decode, getAnnotatedHeader, getDescription, getFields, getGap, getGapLength, getGapOffset, getHeader, getHeaderLength, getHeaderOffset, getId, getIndex, getLength, getName, getNextHeaderId, getNextHeaderOffset, getNicname, getOffset, getPacket, getParent, getPayload, getPayloadLength, getPayloadOffset, getPostfix, getPostfixLength, getPostfixOffset, getPrefix, getPrefixLength, getPrefixOffset, getPreviousHeaderId, getPreviousHeaderOffset, getState, getSubHeaders, hasDescription, hasGap, hasNextHeader, hasPayload, hasPostfix, hasPrefix, hasPreviousHeader, hasSubHeaders, isFragmented, isGapTruncated, isHeaderTruncated, isPayloadTruncated, isPostfixTruncated, isPrefixTruncated, peer, peer, peerPayloadTo, setPacket, setSubHeaders, sizeof, transferPayloadTo, transferPayloadTo, transferPayloadTo, validateHeader
 
Methods inherited from class org.jnetpcap.nio.JBuffer
findUTF8String, getByte, getByteArray, getByteArray, getByteArray, getDouble, getFloat, getInt, getLong, getShort, getUByte, getUInt, getUShort, getUTF8Char, getUTF8String, getUTF8String, getUTF8String, getUTF8String, isReadonly, order, order, peer, peer, peer, peer, setByte, setByteArray, setByteBuffer, setDouble, setFloat, setInt, setLong, setShort, setUByte, setUInt, setUShort, transferFrom, transferFrom, transferFrom, transferTo, transferTo, transferTo
 
Methods inherited from class org.jnetpcap.nio.JMemory
check, cleanup, finalize, isInitialized, isJMemoryBasedOwner, isOwner, peer, setSize, size, toDebugString, toHexdump, toHexdump, totalActiveAllocated, totalAllocateCalls, totalAllocated, totalAllocatedSegments0To255Bytes, totalAllocatedSegments256OrAbove, totalDeAllocateCalls, totalDeAllocated, transferFrom, transferFrom, transferFromDirect, transferOwnership, transferTo, transferTo, transferTo, transferTo, transferTo
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Html

public Html()
Method Detail

bind2Http

@Bind(to=Http.class,
      stringValue="text/html")
public static boolean bind2Http(JPacket packet,
                                                            Http http)

bind2HttpAsCSS

@Bind(to=Http.class,
      stringValue="text/css")
public static boolean bind2HttpAsCSS(JPacket packet,
                                                                 Http http)

headerLength

@HeaderLength
public static int headerLength(JBuffer buffer,
                                            int offset)

decodeHeader

protected void decodeHeader()
Description copied from class: JHeader
Allows a header to decode its complex fields

Overrides:
decodeHeader in class JHeader

page

@Field(offset=0,
       format="#textdump#")
public java.lang.String page()

pageLength

@Dynamic(value=LENGTH)
public int pageLength()

tags

public Html.HtmlTag[] tags()

links

public Html.HtmlTag[] links()

toString

public java.lang.String toString()
Description copied from class: JHeader
Gets a string with summary information about the header.

Overrides:
toString in class JHeader
Returns:
String with summary of the header