public class RestSpell extends java.lang.Object implements RestPluginProcess, RestPluginConvertResult, RestPluginSupportedMethods
| Constructor and Description |
|---|
RestSpell() |
| Modifier and Type | Method and Description |
|---|---|
RestServerResponse |
convertResult(RestDefinition rd,
WebClient client,
ContentType type,
java.lang.Object value)
Convert the result
|
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 rd,
MutableDataSource mds)
HTTP DELETE calls the the Delete ReST service.
|
java.lang.Object |
restRetrieve(WebClient client,
RestDefinition rd,
ReadOnlyDataSource rds)
HTTP GET calls the the Retrieval ReST service.
|
java.lang.Object |
restUpdate(WebClient client,
RestDefinition rd,
MutableDataSource mds)
HTTP PUT calls the the Update ReST service.
|
public java.lang.Object restRetrieve(WebClient client, RestDefinition rd, ReadOnlyDataSource rds) throws java.lang.Exception
RestPluginProcessrestRetrieve in interface RestPluginProcessclient - the client. Null means check only of opsrd - the definitionrds - the data source to usejava.lang.UnsupportedOperationException - if this method is NOT supported.java.lang.Exception - an error has occurred.public java.lang.Object restCreate(WebClient client, RestDefinition rd, MutableDataSource mds) throws java.lang.Exception
RestPluginProcessrestCreate in interface RestPluginProcessclient - 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.Exceptionpublic java.lang.Object restUpdate(WebClient client, RestDefinition rd, MutableDataSource mds) throws java.lang.Exception
RestPluginProcessrestUpdate in interface RestPluginProcessclient - 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.Exceptionpublic java.lang.Object restDelete(WebClient client, RestDefinition rd, MutableDataSource mds) throws java.lang.Exception
RestPluginProcessrestDelete in interface RestPluginProcessclient - the client. Null means check only of opsrd - the definitionmds - the data source to use.java.lang.UnsupportedOperationException - if this method is NOT supported.ExceptionResponse - an error has occurred.java.lang.Exceptionpublic RestServerResponse convertResult(RestDefinition rd, WebClient client, ContentType type, java.lang.Object value) throws java.lang.Exception
RestPluginConvertResultconvertResult in interface RestPluginConvertResultrd - the definitionclient - the clienttype - the target typevalue - the value to be converted.java.lang.Exception - a serious problem.public Method[] listSupportedMethods() throws java.lang.Exception
RestPluginSupportedMethodslistSupportedMethods in interface RestPluginSupportedMethodsjava.lang.ExceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.