PacketCaptureFilter Class

  • java.lang.Object
    • com.microsoft.azure.management.network.PacketCaptureFilter

public class PacketCaptureFilter

Filter that is applied to packet capture request. Multiple filters can be applied.

Constructor Summary

Constructor Description
PacketCaptureFilter()

Method Summary

Modifier and Type Method and Description
java.lang.String localIPAddress()

Get local IP Address to be filtered on.

java.lang.String localPort()

Get local port to be filtered on.

PcProtocol protocol()

Get protocol to be filtered on.

java.lang.String remoteIPAddress()

Get local IP Address to be filtered on.

java.lang.String remotePort()

Get remote port to be filtered on.

PacketCaptureFilter withLocalIPAddress(String localIPAddress)

Set local IP Address to be filtered on.

PacketCaptureFilter withLocalPort(String localPort)

Set local port to be filtered on.

PacketCaptureFilter withProtocol(PcProtocol protocol)

Set protocol to be filtered on.

PacketCaptureFilter withRemoteIPAddress(String remoteIPAddress)

Set local IP Address to be filtered on.

PacketCaptureFilter withRemotePort(String remotePort)

Set remote port to be filtered on.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

PacketCaptureFilter

public PacketCaptureFilter()

Method Details

localIPAddress

public String localIPAddress()

Get local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Returns:

the localIPAddress value

localPort

public String localPort()

Get local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Returns:

the localPort value

protocol

public PcProtocol protocol()

Get protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'.

Returns:

the protocol value

remoteIPAddress

public String remoteIPAddress()

Get local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Returns:

the remoteIPAddress value

remotePort

public String remotePort()

Get remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Returns:

the remotePort value

withLocalIPAddress

public PacketCaptureFilter withLocalIPAddress(String localIPAddress)

Set local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Parameters:

localIPAddress - the localIPAddress value to set

Returns:

the PacketCaptureFilter object itself.

withLocalPort

public PacketCaptureFilter withLocalPort(String localPort)

Set local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Parameters:

localPort - the localPort value to set

Returns:

the PacketCaptureFilter object itself.

withProtocol

public PacketCaptureFilter withProtocol(PcProtocol protocol)

Set protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'.

Parameters:

protocol - the protocol value to set

Returns:

the PacketCaptureFilter object itself.

withRemoteIPAddress

public PacketCaptureFilter withRemoteIPAddress(String remoteIPAddress)

Set local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Parameters:

remoteIPAddress - the remoteIPAddress value to set

Returns:

the PacketCaptureFilter object itself.

withRemotePort

public PacketCaptureFilter withRemotePort(String remotePort)

Set remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Parameters:

remotePort - the remotePort value to set

Returns:

the PacketCaptureFilter object itself.

Applies to