com.github.dreamhead.moco.action.MocoGetRequestAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-core Show documentation
Show all versions of moco-core Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
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;
}
}