protected RFC3881NetworkAccessPointTypeCodes getNetworkAccessPointCodeFromAddress ( String address ) { if ( EventUtils . isEmptyOrNull ( address ) ) { return null ; } if ( address . matches ( "^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$" ) ) { return RFC3881NetworkAccessPointTypeCodes . IP_ADDRESS ; } return RFC3881NetworkAccessPointTypeCodes . MACHINE_NAME ; }
Attempt to determine the proper Active Participant Network Access Point Type Code from a given string .