public class PluginImpl extends ClientImpl implements BasePlugin, Serializable
Constructor and Description |
---|
PluginImpl(String host)
PluginImpl
|
Modifier and Type | Method and Description |
---|---|
Object |
executePluginGet(String className,
Map<String,String> parameters,
Class<?> clazz)
Execute plugin get object.
|
InputStream |
executePluginGetReturnFile(String className,
Map<String,String> parameters)
Execute plugin get return file input stream.
|
Object |
executePluginPost(String className,
Map<String,String> parameters,
Class<?> clazz,
InputStream is)
Execute plugin post object.
|
InputStream |
executePluginPostReturnFile(String className,
Map<String,String> parameters,
InputStream is)
Execute plugin post return file input stream.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
getClient, resource, resource
public PluginImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Object executePluginPost(String className, Map<String,String> parameters, Class<?> clazz, InputStream is) throws UnknownException, WebserviceException
BasePlugin
executePluginPost
in interface BasePlugin
className
- the class nameparameters
- the parametersclazz
- the clazzis
- the isUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic InputStream executePluginPostReturnFile(String className, Map<String,String> parameters, InputStream is) throws UnknownException, WebserviceException
BasePlugin
executePluginPostReturnFile
in interface BasePlugin
className
- the class nameparameters
- the parametersis
- the isUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Object executePluginGet(String className, Map<String,String> parameters, Class<?> clazz) throws UnknownException, WebserviceException, UnsupportedEncodingException
BasePlugin
executePluginGet
in interface BasePlugin
className
- the class nameparameters
- the parametersclazz
- the clazzUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic InputStream executePluginGetReturnFile(String className, Map<String,String> parameters) throws UnknownException, WebserviceException, UnsupportedEncodingException
BasePlugin
executePluginGetReturnFile
in interface BasePlugin
className
- the class nameparameters
- the parametersUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionUnsupportedEncodingException
- the unsupported encoding exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.