com.cisco.trex.stateful.api.lowlevel.ASTFTCPInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trex-java-sdk Show documentation
Show all versions of trex-java-sdk Show documentation
Java client SDK provides an implementation for TRex RPC APIs
package com.cisco.trex.stateful.api.lowlevel;
import org.apache.commons.lang3.StringUtils;
/** Java implementation for TRex python sdk _ASTFTCPInfo class */
class ASTFTCPInfo {
private int port;
/**
* construct
*
* @param filePath
*/
ASTFTCPInfo(String filePath) {
if (!StringUtils.isEmpty(filePath)) {
CpcapReader cap = CapHandling.cpcapReader(filePath);
cap.analyze();
this.port = cap.getDstPort();
}
}
/**
* getPort
*
* @return port
*/
public int getPort() {
return port;
}
}