|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MutableCaptureInterface
Provides methods for setting various properties of the underlying
CaptureInterface object. You must ensure that the MutableCaptureInterface
instance is still valid for mutation by calling CaptureInterface.isMutable()
method. CaptureInterfaces when first created are mutable, but become immutable the
memoment they are applied to LiveCapture when their states are frozen and can no
longer be modified. This is so because packets reference CaptureInerface that the
packet was captured on and this allows a snapshot of the exact configuration of the
network interface to be made using CaptureInterface objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jnetpcap.capture.CaptureInterface |
|---|
CaptureInterface.Capability, CaptureInterface.TimestampResolution |
| Method Summary | |
|---|---|
void |
setDataEncapsulation(DataEncapsulation dlt)
Sets the data encapsulation for this capture device |
void |
setDisplayName(java.lang.String name)
Sets a more human readable name for the interface this capture device describes. |
void |
setFilter(Filter filter)
Sets a new filter to be applied to the future or currently active capture session for the network interface this capture device is associated with. |
void |
setName(java.lang.String name)
Sets the name of the interface this capture device describes. |
void |
setOSArchitecture(java.lang.String osArchitecture)
Sets the OS architecture of the capture device's operating system |
void |
setOSName(java.lang.String name)
Sets the ame of the operating system the device is on. |
void |
setOSVersion(java.lang.String version)
Sets the operating system version the capture device is on. |
void |
setTimestampResolution(CaptureInterface.TimestampResolution resolution)
Sets the capturing devices clock resolution when it comes to recording a timestamp. |
void |
setTimezone(int timezone)
Sets the timezeone for this device. |
| Methods inherited from interface jnetpcap.capture.CaptureInterface |
|---|
getCapabilities, getDataEncapsulation, getDisplayName, getFilter, getIpAddresses, getMutableCaptureInterface, getName, getOSArchitecture, getOSName, getOSVersion, getTimestampResolution, getTimezone, isMutable |
| Method Detail |
|---|
void setDataEncapsulation(DataEncapsulation dlt)
dlt - data link type enum constantvoid setDisplayName(java.lang.String name)
name - human readable name for this interfacevoid setFilter(Filter filter)
filter - filter to apply to any open live capture sessions to this devicevoid setName(java.lang.String name)
name - non human readable unique name for the interfacevoid setOSArchitecture(java.lang.String osArchitecture)
osArchitecture - OS architecture descriptionvoid setOSName(java.lang.String name)
name - name of the operating systemvoid setOSVersion(java.lang.String version)
version - version of the operating systemvoid setTimestampResolution(CaptureInterface.TimestampResolution resolution)
resolution - an enum constant describing the clock resolution of the capturing devicevoid setTimezone(int timezone)
timezone - number of timezones as offset from timezone zero (Greenwich, CH)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||