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
RestPluginProcess
restRetrieve
in interface RestPluginProcess
client
- 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.IllegalArgumentException
protected 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
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
java.lang.IllegalArgumentException
public java.lang.Object restUpdate(WebClient client, RestDefinition rd, 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 opsrd
- 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 rd, 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 opsrd
- 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
protected abstract java.lang.String getSwaggerCallName()
protected abstract JSONObject makeSwaggerJSON() throws java.lang.Exception
java.lang.Exception
public 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.Exception
public DBResult<RestDefinitionVariable> listSwaggerVariables(Login login, RestDefinition rd, Method method, int mandatoryPathVariableDepth) throws java.lang.Exception
listSwaggerVariables
in interface SwaggerListVariables
java.lang.Exception
@CheckReturnValue @Nonnull public Method[] listSupportedMethods() throws java.lang.Exception
listSupportedMethods
in interface RestPluginSupportedMethods
java.lang.Exception
protected boolean login(java.lang.String userId, java.lang.String password, WebClient client) throws java.lang.Exception
java.lang.Exception
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.