Class UssExtAttr


  • public class UssExtAttr
    extends Object
    Provides Unix System Services (USS) extattr functionality
    Version:
    3.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssExtAttr

        public UssExtAttr​(ZosConnection connection)
        UssCopy Constructor
        Parameters:
        connection - connection information, see ZosConnection object
      • UssExtAttr

        public UssExtAttr​(ZosConnection connection,
                          ZosmfRequest request)
        Alternative UssCopy constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.
        Parameters:
        connection - connection information, see ZosConnection object
        request - any compatible ZoweRequest Interface object
    • Method Detail

      • display

        public String display​(String targetPath)
                       throws ZosmfRequestException
        Returns a response string documenting listing attributes
        Parameters:
        targetPath - path to the file or directory
        Returns:
        string output
        Throws:
        ZosmfRequestException - request error state
      • set

        public Response set​(String targetPath,
                            String value)
                     throws ZosmfRequestException
        Extends the attributes of a file or directory
        Parameters:
        targetPath - path to the file or directory
        value - one or more of the following character: a,l,p,s
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • reset

        public Response reset​(String targetPath,
                              String value)
                       throws ZosmfRequestException
        Resets the attributes of a file or directory
        Parameters:
        targetPath - path to the file or directory
        value - one or more of the following character: a,l,p,s
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state