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

com.github.dreamhead.moco.action.MocoGetRequestAction Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
package com.github.dreamhead.moco.action;

import com.github.dreamhead.moco.MocoConfig;
import com.github.dreamhead.moco.MocoEventAction;
import com.github.dreamhead.moco.Request;
import com.github.dreamhead.moco.resource.Resource;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpRequestBase;

public class MocoGetRequestAction extends MocoRequestAction {
    public MocoGetRequestAction(final Resource url) {
        super(url);
    }

    protected HttpRequestBase createRequest(final String url, final Request request) {
        return new HttpGet(url);
    }

    @Override
    public MocoEventAction apply(MocoConfig config) {
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy