public class UploadToREST extends Object implements ResourceUploader
| Constructor and Description |
|---|
UploadToREST(RESTClient.Type type) |
UploadToREST(RESTClient.Type type,
String username,
String password) |
UploadToREST(RESTClient client) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
entity(String resourcePath,
String text,
RESTClient.Type type) |
void |
uploadResourceAsText(String resourcePath,
String text) |
protected String |
uri(String resourcePath,
RESTClient.Type type) |
public UploadToREST(RESTClient.Type type)
public UploadToREST(RESTClient.Type type, String username, String password)
public UploadToREST(RESTClient client)
public void uploadResourceAsText(String resourcePath, String text)
uploadResourceAsText in interface ResourceUploaderprotected String uri(String resourcePath, RESTClient.Type type)
protected String entity(String resourcePath, String text, RESTClient.Type type)
Copyright © 2003-2013. All Rights Reserved.