|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cysols.iodef.analysis.packet.Packet
public class Packet
This class represents a packet itself, this value class has six values as following, and some methods accessing them.
type, timestamp, source ipaddress, source port, destination ip address, destination port
| Constructor Summary | |
|---|---|
Packet()
Default constructor, instantiates an empty packet object. |
|
| Method Summary | |
|---|---|
String |
getDstIPAddr()
Returns the destination address of this packet event. |
String |
getDstPort()
Returns the destinatin port number of this packet event. |
String |
getRawData()
Returns the raw data (original packet dump text) of this packet event. |
String |
getSrcIPAddr()
Returns the source address of this packet event. |
String |
getSrcPort()
Returns the source port number of this packet event. |
long |
getTimestamp()
Retuns the timestamp of this packet event. |
String |
getType()
Returns the type (simple description) of this packet event. |
void |
setDstIPAddr(String dstIPAddr)
Sets a destination address as the destination address of this packet event. |
void |
setDstPort(String dstPort)
Sets a destination port number as the destinatin port number of this packet event. |
void |
setRawData(String rawdata)
Sets a raw data (original packet dump text) as the raw data of this packet event. |
void |
setSrcIPAddr(String srcIPAddr)
Sets a source address as the source address of this packet event. |
void |
setSrcPort(String srcPort)
Sets a source address as the source port number of this packet event. |
void |
setTimestamp(long timestamp)
Sets a timestamp as the timestamp of this packet event. |
void |
setType(String type)
Sets a type (simple description) as the type of this packet event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Packet()
| Method Detail |
|---|
public String getDstIPAddr()
public void setDstIPAddr(String dstIPAddr)
dstIPAddr - destination IP addres.public String getDstPort()
public void setDstPort(String dstPort)
dstPort - destination port number.public String getSrcIPAddr()
getSrcIPAddr in interface Eventpublic void setSrcIPAddr(String srcIPAddr)
srcIPAddr - source IP address.public String getSrcPort()
public void setSrcPort(String srcPort)
srcPort - source IP address.public long getTimestamp()
getTimestamp in interface Eventpublic void setTimestamp(long timestamp)
timestamp - millisecondspublic String getType()
public void setType(String type)
type - type description.public String getRawData()
public void setRawData(String rawdata)
rawdata - row packet dump data.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||