class BlockList extends Object with StObject

Annotations
@JSType() @JSImport("net", "BlockList") @native()
Source
BlockList.scala
Linear Supertypes
StObject, Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlockList
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BlockList()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAddress(address: scala.Predef.String, type: IPVersion): Unit
  5. def addAddress(address: scala.Predef.String): Unit

    Adds a rule to block the given IP address.

    Adds a rule to block the given IP address.

    address

    An IPv4 or IPv6 address.

  6. def addAddress(address: SocketAddress): Unit
  7. def addRange(start: scala.Predef.String, end: scala.Predef.String, type: IPVersion): Unit
  8. def addRange(start: scala.Predef.String, end: scala.Predef.String): Unit

    Adds a rule to block a range of IP addresses from start (inclusive) to end (inclusive).

    Adds a rule to block a range of IP addresses from start (inclusive) to end (inclusive).

    start

    The starting IPv4 or IPv6 address in the range.

    end

    The ending IPv4 or IPv6 address in the range.

  9. def addRange(start: SocketAddress, end: SocketAddress): Unit
  10. def addSubnet(net: scala.Predef.String, prefix: Double, type: IPVersion): Unit
  11. def addSubnet(net: scala.Predef.String, prefix: Double): Unit
  12. def addSubnet(net: SocketAddress, prefix: Double): Unit

    Adds a rule to block a range of IP addresses specified as a subnet mask.

    Adds a rule to block a range of IP addresses specified as a subnet mask.

    net

    The network IPv4 or IPv6 address.

    prefix

    The number of CIDR prefix bits. For IPv4, this must be a value between 0 and 32. For IPv6, this must be between 0 and 128.

  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def check(address: scala.Predef.String, type: IPVersion): Boolean
  15. def check(address: scala.Predef.String): Boolean
  16. def check(address: SocketAddress): Boolean

    Returns true if the given IP address matches any of the rules added to the BlockList.

    Returns true if the given IP address matches any of the rules added to the BlockList.

    address

    The IP address to check

  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  21. def hasOwnProperty(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  28. def propertyIsEnumerable(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  31. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  32. def valueOf(): Any
    Definition Classes
    Object
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped