Class IsLocalHost

java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.decision.IsLocalHost

@BoxBIF(description="Check if running on localhost") public class IsLocalHost extends BIF
  • Constructor Details

    • IsLocalHost

      public IsLocalHost()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Determine whether a given string value represents a loopback IP address, like `localhost`, `127.0.0.1` or `::1`.
      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      The result of the invocation