Class SmsSingleSearchEndpoint

    • Method Detail

      • makeRequest

        public org.apache.http.client.methods.RequestBuilder makeRequest​(java.lang.String id)
                                                                  throws java.io.UnsupportedEncodingException
        Description copied from class: AbstractMethod
        Construct and return a RequestBuilder instance from the provided request.
        Specified by:
        makeRequest in class AbstractMethod<java.lang.String,​SmsSingleSearchResponse>
        Parameters:
        id - A RequestT representing input to the REST call to be made
        Returns:
        A ResultT representing the response from the executed REST call
        Throws:
        java.io.UnsupportedEncodingException - if UTF-8 encoding is not supported by the JVM
      • parseResponse

        public SmsSingleSearchResponse parseResponse​(org.apache.http.HttpResponse response)
                                              throws java.io.IOException
        Description copied from class: AbstractMethod
        Construct a ResultT representing the contents of the HTTP response returned from the Nexmo Voice API.
        Specified by:
        parseResponse in class AbstractMethod<java.lang.String,​SmsSingleSearchResponse>
        Parameters:
        response - An HttpResponse returned from the Nexmo Voice API
        Returns:
        A ResultT type representing the result of the REST call
        Throws:
        java.io.IOException - if a problem occurs parsing the response