Package eu.rekawek.toxiproxy
Class Proxy
- java.lang.Object
-
- eu.rekawek.toxiproxy.Proxy
-
public class Proxy extends Object
-
-
Constructor Summary
Constructors Constructor Description Proxy(HttpClient httpClient, String path, com.google.gson.JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()voiddisable()voidenable()StringgetListen()StringgetName()StringgetUpstream()booleanisEnabled()voidsetListen(String listen)voidsetUpstream(String upstream)StringtoString()ToxicListtoxics()
-
-
-
Constructor Detail
-
Proxy
public Proxy(HttpClient httpClient, String path, com.google.gson.JsonObject json)
-
-
Method Detail
-
getName
public String getName()
-
getListen
public String getListen()
-
getUpstream
public String getUpstream()
-
isEnabled
public boolean isEnabled()
-
toxics
public ToxicList toxics()
-
setListen
public void setListen(String listen) throws IOException
- Throws:
IOException
-
setUpstream
public void setUpstream(String upstream) throws IOException
- Throws:
IOException
-
enable
public void enable() throws IOException- Throws:
IOException
-
disable
public void disable() throws IOException- Throws:
IOException
-
delete
public void delete() throws IOException- Throws:
IOException
-
-