Package rest

Class TextPutRequest


  • public class TextPutRequest
    extends ZoweRequest
    Http put operation with text content type
    Version:
    1.0
    Author:
    Frank Giordano
    • Constructor Detail

      • TextPutRequest

        public TextPutRequest​(ZOSConnection connection,
                              String url,
                              String body)
                       throws Exception
        TextPutRequest constructor.
        Parameters:
        connection - connection information, see ZOSConnection object
        url - rest url value
        body - data to be attached to the request
        Throws:
        Exception - error setting constructor variables
    • Method Detail

      • setStandardHeaders

        public void setStandardHeaders()
        Set the standard headers for the http request
        Specified by:
        setStandardHeaders in class ZoweRequest
      • setHeaders

        public void setHeaders​(Map<String,​String> headers)
        Set any headers needed for the http request
        Specified by:
        setHeaders in class ZoweRequest
        Parameters:
        headers - headers to add to the request
      • setRequest

        public void setRequest​(String url)
                        throws Exception
        Set the following incoming url with a new http request
        Specified by:
        setRequest in class ZoweRequest
        Parameters:
        url - fr the request
        Throws:
        Exception - error setting the http request