Class UssCreate


  • public class UssCreate
    extends Object
    Provides Unix System Services (USS) create object functionality

    z/OSMF REST API

    Version:
    2.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssCreate

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

        public UssCreate​(ZosConnection connection,
                         ZoweRequest request)
                  throws Exception
        Alternative UssCreate 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
        Throws:
        Exception - processing error
    • Method Detail

      • create

        public Response create​(String targetPath,
                               CreateParams params)
                        throws Exception
        Perform UNIX create file or directory name request driven by CreateParams object settings
        Parameters:
        targetPath - the name of the file or directory you are going to create
        params - create response parameters, see CreateParams object
        Returns:
        Response object
        Throws:
        Exception - error processing request