All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenmoonsoftware.tea.GreenTeaHttpClient.groovy Maven / Gradle / Ivy

Go to download

A Groovy framework for functional testing rest services. Intended to help you relax while you REST.

There is a newer version: 1.0.12
Show newest version
package com.greenmoonsoftware.tea

import org.apache.http.client.ClientProtocolException
import org.apache.http.client.ResponseHandler
import org.apache.http.client.methods.HttpRequestBase
import org.apache.http.client.methods.HttpUriRequest
import org.apache.http.impl.client.DefaultHttpClient
import org.apache.http.params.HttpParams
import org.apache.http.protocol.HttpContext

import java.lang.invoke.MethodHandleImpl

class GreenTeaHttpClient extends DefaultHttpClient {
    HttpRequestBase request

    GreenTeaHttpClient(final HttpParams params) {
        super(params)
    }

    def execute(
            HttpUriRequest request,
            ResponseHandler responseHandler,
            HttpContext context)
            throws IOException, ClientProtocolException {
        this.request = request
        super.execute(request, responseHandler, context)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy