public class RestFileUpload extends java.lang.Object implements RestPluginProcess, RestPluginSupportedMethods
Constructor and Description |
---|
RestFileUpload() |
Modifier and Type | Method and Description |
---|---|
protected DBFile |
createFile(java.lang.String className,
DBFolder folder,
java.lang.String name) |
protected DBFolder |
createFolder(WebClient client,
RestDefinition rd,
MutableDataSource mds,
java.lang.String path,
java.lang.String name) |
Method[] |
listSupportedMethods()
List of methods supported.
|
java.lang.Object |
restCreate(WebClient client,
RestDefinition rd,
MutableDataSource mds)
HTTP POST calls the the Create ReST service.
|
java.lang.Object |
restDelete(WebClient client,
RestDefinition restDefinition,
MutableDataSource mds)
HTTP DELETE calls the the Delete ReST service.
|
java.lang.Object |
restRetrieve(WebClient client,
RestDefinition restDefinition,
ReadOnlyDataSource rds)
HTTP GET calls the the Retrieval ReST service.
|
java.lang.Object |
restUpdate(WebClient client,
RestDefinition restDefinition,
MutableDataSource mds)
HTTP PUT calls the the Update ReST service.
|
public java.lang.Object restCreate(WebClient client, RestDefinition rd, MutableDataSource mds) throws java.lang.Exception
RestPluginProcess
restCreate
in interface RestPluginProcess
client
- the client. Null means check only of opsrd
- the definitionmds
- the data source to usejava.lang.UnsupportedOperationException
- if this method is NOT supported.ExceptionResponse
- an error has occurred.java.lang.Exception
protected DBFile createFile(java.lang.String className, DBFolder folder, java.lang.String name) throws java.lang.Exception
java.lang.Exception
protected DBFolder createFolder(WebClient client, RestDefinition rd, MutableDataSource mds, java.lang.String path, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public Method[] listSupportedMethods() throws java.lang.Exception
RestPluginSupportedMethods
listSupportedMethods
in interface RestPluginSupportedMethods
java.lang.Exception
public java.lang.Object restRetrieve(WebClient client, RestDefinition restDefinition, ReadOnlyDataSource rds) throws java.lang.UnsupportedOperationException, java.lang.Exception, java.lang.IllegalArgumentException
RestPluginProcess
restRetrieve
in interface RestPluginProcess
client
- the client. Null means check only of opsrestDefinition
- the definitionrds
- the data source to usejava.lang.UnsupportedOperationException
- if this method is NOT supported.java.lang.Exception
- an error has occurred.java.lang.IllegalArgumentException
public java.lang.Object restUpdate(WebClient client, RestDefinition restDefinition, MutableDataSource mds) throws java.lang.UnsupportedOperationException, java.lang.Exception, java.lang.IllegalArgumentException
RestPluginProcess
restUpdate
in interface RestPluginProcess
client
- the client. Null means check only of opsrestDefinition
- the definitionmds
- the data source to usejava.lang.UnsupportedOperationException
- if this method is NOT supported.ExceptionResponse
- an error has occurred.java.lang.Exception
java.lang.IllegalArgumentException
public java.lang.Object restDelete(WebClient client, RestDefinition restDefinition, MutableDataSource mds) throws java.lang.UnsupportedOperationException, java.lang.Exception, java.lang.IllegalArgumentException
RestPluginProcess
restDelete
in interface RestPluginProcess
client
- the client. Null means check only of opsrestDefinition
- the definitionmds
- the data source to use.java.lang.UnsupportedOperationException
- if this method is NOT supported.ExceptionResponse
- an error has occurred.java.lang.Exception
java.lang.IllegalArgumentException
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.