|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.nio.JMemory
org.jnetpcap.nio.JBuffer
org.jnetpcap.packet.JHeader
org.jnetpcap.packet.JMappedHeader
org.jnetpcap.packet.AbstractMessageHeader
org.jnetpcap.protocol.tcpip.Http
@Header(suite=TCP_IP) public class Http
Hyper Text Transfer Protocol header definition.
| Nested Class Summary | |
|---|---|
static class |
Http.Chunk
A http chunk that has been encoded during transfer as "Transfer-Encoding: chuncked". |
static class |
Http.ContentType
Http content type table. |
static class |
Http.Request
HTTP Request fields. |
static class |
Http.Response
HTTP Response fields. |
| Nested classes/interfaces inherited from class org.jnetpcap.packet.AbstractMessageHeader |
|---|
AbstractMessageHeader.MessageType |
| 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 | |
|---|---|
static int |
ID
Constant numerical ID assigned to this protocol. |
| Fields inherited from class org.jnetpcap.packet.AbstractMessageHeader |
|---|
rawHeader |
| 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, MAX_DIRECT_MEMORY_DEFAULT, POINTER |
| Constructor Summary | |
|---|---|
Http()
|
|
| Method Summary | |
|---|---|
Http.Chunk[] |
chunks()
Chunks. |
java.lang.String |
contentType()
Content type. |
Http.ContentType |
contentTypeEnum()
Content type enum. |
protected void |
decodeFirstLine(java.lang.String line)
Decode first line. |
java.lang.String |
fieldValue(Http.Request field)
Field value. |
java.lang.String |
fieldValue(Http.Response field)
Field value. |
boolean |
hasChuncks()
Checks for chuncks. |
boolean |
hasContent()
Checks for content. |
boolean |
hasContentType()
Checks for content type. |
boolean |
hasField(Http.Request field)
Checks for field. |
boolean |
hasField(Http.Response field)
Checks for field. |
java.lang.String |
header()
Gets the raw header instead of reconstructing it. |
boolean |
isResponse()
Checks if is response. |
| Methods inherited from class org.jnetpcap.packet.AbstractMessageHeader |
|---|
decodeHeader, getMessageType, headerLength, setMessageType |
| Methods inherited from class org.jnetpcap.packet.JMappedHeader |
|---|
addField, addField, addField, clearFields, fieldArray, fieldDescription, fieldDescription, fieldDisplay, fieldDisplay, fieldLength, fieldLength, fieldOffset, fieldOffset, fieldValue, fieldValue, fieldValue, fieldValue, hasField, hasField, map, map |
| 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, setShort0, setUByte, setUInt, setUShort, transferFrom, transferFrom, transferFrom, transferTo, transferTo, transferTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ID
| Constructor Detail |
|---|
public Http()
| Method Detail |
|---|
public java.lang.String contentType()
public Http.ContentType contentTypeEnum()
public boolean hasChuncks()
public Http.Chunk[] chunks()
protected void decodeFirstLine(java.lang.String line)
decodeFirstLine in class AbstractMessageHeaderline - the lineAbstractMessageHeader.decodeFirstLine(java.lang.String)public java.lang.String fieldValue(Http.Request field)
field - the field
public java.lang.String fieldValue(Http.Response field)
field - the field
public boolean hasContent()
public boolean hasContentType()
public boolean hasField(Http.Request field)
field - the field
public boolean hasField(Http.Response field)
field - the field
public boolean isResponse()
public java.lang.String header()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||