Class CompressedHttpClient

    • Method Detail

      • execute

        public java.lang.String execute​(byte[] requestBody)
                                 throws XmlRpcException
        Executes a HTTP request to the connected server
        Overrides:
        execute in class StandardHttpClient
        Parameters:
        requestBody - The contents of the HTTP request. Headers are added appropriately by this method after the request is compressed
        Throws:
        XmlRpcException - If the server returns a status code other than 200 OK
      • executeReturnBytes

        public byte[] executeReturnBytes​(byte[] requestBody)
                                  throws XmlRpcException
        Executes a HTTP request to the connected server
        Overrides:
        executeReturnBytes in class StandardHttpClient
        Parameters:
        requestBody - The contents of the HTTP request. Headers are added appropriately by this method after the request is compressed
        Throws:
        XmlRpcException - If the server returns a status code other than 200 OK
      • writeRequestHeader

        protected java.lang.StringBuffer writeRequestHeader​(int requestLength)
        Writes the headers for a HTTP request, adding the deflate method as content-encoding.
        Overrides:
        writeRequestHeader in class StandardHttpClient