Packagecom.ericfeminella.net
Interfacepublic interface IIPInspector
ImplementorsIPV4Inspector

Defines the contract for validating and inspecting an IP version 4 Address (IPv4)



Public Methods
 MethodDefined by
  
getHostOctet():String
Determines the host octet of the specified IP Address
IIPInspector
  
getNetworkClass():String
Determines the network class of the specified IP Address
IIPInspector
  
Determines the network octet of the specified IP Address
IIPInspector
  
isLoopback():Boolean
Determines if the IPAddress specified is a loopback address.
IIPInspector
  
isValid():Boolean
Determines if the IPAddress specified is a valid IPv4 address
IIPInspector
  
Determines if the specified IP Address is valid for Network assignment
IIPInspector
  
isWithinClassRange(networkClass:String):Boolean
Determines if the IP Address is within range of the specified network class
IIPInspector
Method detail
getHostOctet()method
public function getHostOctet():String

Determines the host octet of the specified IP Address

Returns
String — the host octet of the specified IP Address
getNetworkClass()method 
public function getNetworkClass():String

Determines the network class of the specified IP Address

Returns
String — the class of the specified IP Address, Class A,B or C
getNetworkOctet()method 
public function getNetworkOctet():uint

Determines the network octet of the specified IP Address

Returns
uint — the network octet of the specified IP Address
isLoopback()method 
public function isLoopback():Boolean

Determines if the IPAddress specified is a loopback address.

Returns
Boolean — true if the address is a loopback address, otherwise false
isValid()method 
public function isValid():Boolean

Determines if the IPAddress specified is a valid IPv4 address

Returns
Boolean — true if the IP address is a valid IPv4 address, false if not
isValidNetworkHost()method 
public function isValidNetworkHost():Boolean

Determines if the specified IP Address is valid for Network assignment

Returns
Boolean — true if the address is valid for network assignment, otherwise false
isWithinClassRange()method 
public function isWithinClassRange(networkClass:String):Boolean

Determines if the IP Address is within range of the specified network class

Parameters
networkClass:String — IP Address in which to validate the class range

Returns
Boolean — true if the IP Address is within range, false if not