Package org.jbehave.core.io.rest
Class LoadFromREST
- java.lang.Object
-
- org.jbehave.core.io.rest.LoadFromREST
-
- All Implemented Interfaces:
org.jbehave.core.io.ResourceLoader
- Direct Known Subclasses:
LoadFromRedmine
,LoadFromXWiki
public class LoadFromREST extends Object implements org.jbehave.core.io.ResourceLoader
Loads resource from REST
-
-
Constructor Summary
Constructors Constructor Description LoadFromREST(RESTClient client)
LoadFromREST(RESTClient.Type type)
LoadFromREST(RESTClient.Type type, String username, String password)
-
Method Summary
Modifier and Type Method Description String
loadResourceAsText(String resourcePath)
protected String
text(String entity, RESTClient.Type type)
protected String
uri(String resourcePath, RESTClient.Type type)
-
-
-
Constructor Detail
-
LoadFromREST
public LoadFromREST(RESTClient.Type type)
-
LoadFromREST
public LoadFromREST(RESTClient.Type type, String username, String password)
-
LoadFromREST
public LoadFromREST(RESTClient client)
-
-
Method Detail
-
loadResourceAsText
public String loadResourceAsText(String resourcePath)
- Specified by:
loadResourceAsText
in interfaceorg.jbehave.core.io.ResourceLoader
-
uri
protected String uri(String resourcePath, RESTClient.Type type)
-
text
protected String text(String entity, RESTClient.Type type)
-
-