public abstract class RestSwaggerProxyV2 extends java.lang.Object implements RestPluginProcess, SwaggerListVariables, RestPluginSupportedMethods
| Modifier and Type | Field and Description |
|---|---|
protected static long |
SYSTEM_START |
| Constructor and Description |
|---|
RestSwaggerProxyV2() |
| Modifier and Type | Method and Description |
|---|---|
java.util.HashMap<java.lang.String,java.lang.String> |
getMoreParameters(WebClient client) |
protected abstract java.lang.String |
getRestBaseURL() |
protected abstract java.lang.String |
getSwaggerCallName() |
Method[] |
listSupportedMethods()
List of methods supported.
|
DBResult<RestDefinitionVariable> |
listSwaggerVariables(Login login,
RestDefinition rd,
Method method,
int mandatoryPathVariableDepth) |
protected boolean |
login(java.lang.String userId,
java.lang.String password,
WebClient client) |
protected abstract JSONObject |
makeSwaggerJSON() |
void |
onSuccess(WebClient client,
RestDefinition rd,
Response response) |
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.UnsupportedOperationException, java.lang.Exception, java.lang.IllegalArgumentException
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.java.lang.IllegalArgumentExceptionprotected abstract java.lang.String getRestBaseURL()
public java.lang.Object restCreate(WebClient client, RestDefinition rd, MutableDataSource mds) throws java.lang.UnsupportedOperationException, java.lang.Exception, java.lang.IllegalArgumentException
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.Exceptionjava.lang.IllegalArgumentExceptionpublic java.lang.Object restUpdate(WebClient client, RestDefinition rd, MutableDataSource mds) throws java.lang.UnsupportedOperationException, java.lang.Exception, java.lang.IllegalArgumentException
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.Exceptionjava.lang.IllegalArgumentExceptionpublic java.lang.Object restDelete(WebClient client, RestDefinition rd, MutableDataSource mds) throws java.lang.UnsupportedOperationException, java.lang.Exception, java.lang.IllegalArgumentException
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.Exceptionjava.lang.IllegalArgumentExceptionprotected abstract java.lang.String getSwaggerCallName()
protected abstract JSONObject makeSwaggerJSON() throws java.lang.Exception
java.lang.Exceptionpublic java.util.HashMap<java.lang.String,java.lang.String> getMoreParameters(WebClient client)
public void onSuccess(WebClient client, @Nonnull RestDefinition rd, Response response) throws java.lang.Exception
java.lang.Exceptionpublic DBResult<RestDefinitionVariable> listSwaggerVariables(Login login, RestDefinition rd, Method method, int mandatoryPathVariableDepth) throws java.lang.Exception
listSwaggerVariables in interface SwaggerListVariablesjava.lang.Exception@CheckReturnValue @Nonnull public Method[] listSupportedMethods() throws java.lang.Exception
listSupportedMethods in interface RestPluginSupportedMethodsjava.lang.Exceptionprotected boolean login(java.lang.String userId,
java.lang.String password,
WebClient client)
throws java.lang.Exception
java.lang.ExceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.