Interface Protocol

All Superinterfaces:
Serializable, URLComponent
All Known Implementing Classes:
Protocols

public interface Protocol extends URLComponent
The protocol portion of a URL (e.g. "http"). See the enum Protocols for standard protocols.

Note: Any external implementation of this class should implement equals and hash code test equality of getName() without case-sensitivity.

Author:
Tim Boudreau
  • Field Details

    • INVALID

      static final Protocol INVALID
  • Method Details

    • getName

      String getName()
    • getDefaultPort

      Port getDefaultPort()
    • isSecure

      boolean isSecure()
    • match

      boolean match(String protocol)
    • isKnownProtocol

      boolean isKnownProtocol()
    • isNetworkProtocol

      boolean isNetworkProtocol()
    • isSecureVersionOf

      boolean isSecureVersionOf(Protocol other)
    • isInsecureVersionOf

      boolean isInsecureVersionOf(Protocol other)