public class LoadFromREST extends Object implements ResourceLoader
Constructor and Description |
---|
LoadFromREST(RESTClient.Type type) |
LoadFromREST(RESTClient.Type type,
String username,
String password) |
LoadFromREST(RESTClient client) |
Modifier and Type | Method and Description |
---|---|
String |
loadResourceAsText(String resourcePath) |
protected String |
text(String entity,
RESTClient.Type type) |
protected String |
uri(String resourcePath,
RESTClient.Type type) |
public LoadFromREST(RESTClient.Type type)
public LoadFromREST(RESTClient.Type type, String username, String password)
public LoadFromREST(RESTClient client)
public String loadResourceAsText(String resourcePath)
loadResourceAsText
in interface ResourceLoader
protected String uri(String resourcePath, RESTClient.Type type)
protected String text(String entity, RESTClient.Type type)
Copyright © 2003-2014. All Rights Reserved.