org.jnetpcap.protocol.application
Class Html
java.lang.Object
org.jnetpcap.nio.JMemory
org.jnetpcap.nio.JBuffer
org.jnetpcap.packet.JHeader
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. |
|
Constructor Summary |
Html()
|
| 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 |
Html
public Html()
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