PacketCaptureFilter Class
- java.
lang. Object - com.
microsoft. azure. management. network. PacketCaptureFilter
- com.
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. |
Pc |
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. |
Packet |
withLocalIPAddress(String localIPAddress)
Set local IP Address to be filtered on. |
Packet |
withLocalPort(String localPort)
Set local port to be filtered on. |
Packet |
withProtocol(PcProtocol protocol)
Set protocol to be filtered on. |
Packet |
withRemoteIPAddress(String remoteIPAddress)
Set local IP Address to be filtered on. |
Packet |
withRemotePort(String remotePort)
Set remote port to be filtered on. |
Methods inherited from java.lang.Object
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:
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:
protocol
public PcProtocol protocol()
Get protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'.
Returns:
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:
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:
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:
Returns:
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:
Returns:
withProtocol
public PacketCaptureFilter withProtocol(PcProtocol protocol)
Set protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'.
Parameters:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for