Class ShareProtocols


  • public class ShareProtocols
    extends Object
    Represents protocols that can be set on a share.
    • Constructor Detail

      • ShareProtocols

        public ShareProtocols()
    • Method Detail

      • isSmbEnabled

        public boolean isSmbEnabled()
        Returns:
        Enable SMB
      • isNfsEnabled

        public boolean isNfsEnabled()
        Returns:
        Enable NFS
      • setSmbEnabled

        public ShareProtocols setSmbEnabled​(boolean smb)
        Parameters:
        smb - Enable SMB
        Returns:
        The updated object
      • setNfsEnabled

        public ShareProtocols setNfsEnabled​(boolean nfs)
        Parameters:
        nfs - Enable NFS
        Returns:
        The updated object
      • toString

        public String toString()
        Converts the given protocols to a String.
        Overrides:
        toString in class Object
        Returns:
        A String which represents the enabled protocols.
        Throws:
        IllegalArgumentException - If both SMB and NFS are set.