Package rest

Class ZoweRequestFactory


  • public class ZoweRequestFactory
    extends Object
    Request factory that generates the desire CRUD operation
    Version:
    1.0
    Author:
    Frank Giordano
    • Constructor Detail

      • ZoweRequestFactory

        public ZoweRequestFactory()
    • Method Detail

      • buildRequest

        public static ZoweRequest buildRequest​(ZOSConnection connection,
                                               String url,
                                               String body,
                                               ZoweRequestType.VerbType type)
                                        throws Exception
        Assign the request to the Http verb type request object
        Parameters:
        connection - connection information, see ZOSConnection object
        url - rest url value
        body - content for request body
        type - request http type, see ZoweRequestType.VerbType object
        Returns:
        ZoweRequest value
        Throws:
        Exception - error with type not found