Package com.openkm.sdk4j.impl
Class PluginImpl
- java.lang.Object
-
- com.openkm.sdk4j.impl.ClientImpl
-
- com.openkm.sdk4j.impl.PluginImpl
-
- All Implemented Interfaces:
BasePlugin,Serializable
public class PluginImpl extends ClientImpl implements BasePlugin, Serializable
PluginImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginImpl(String host)PluginImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectexecutePluginGet(String className, Map<String,String> parameters, Class<?> clazz)Execute plugin get object.InputStreamexecutePluginGetReturnFile(String className, Map<String,String> parameters)Execute plugin get return file input stream.ObjectexecutePluginPost(String className, Map<String,String> parameters, Class<?> clazz, InputStream is)Execute plugin post object.InputStreamexecutePluginPostReturnFile(String className, Map<String,String> parameters, InputStream is)Execute plugin post return file input stream.protected voidsetAuthorizationToken(String authorizationToken)setAuthenticationToken-
Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
-
-
-
Constructor Detail
-
PluginImpl
public PluginImpl(String host)
PluginImpl
-
-
Method Detail
-
setAuthorizationToken
protected void setAuthorizationToken(String authorizationToken)
setAuthenticationToken
-
executePluginPost
public Object executePluginPost(String className, Map<String,String> parameters, Class<?> clazz, InputStream is) throws UnknownException, WebserviceException
Description copied from interface:BasePluginExecute plugin post object.- Specified by:
executePluginPostin interfaceBasePlugin- Parameters:
className- the class nameparameters- the parametersclazz- the clazzis- the is- Returns:
- the object
- Throws:
UnknownException- the unknown exceptionWebserviceException- the webservice exception
-
executePluginPostReturnFile
public InputStream executePluginPostReturnFile(String className, Map<String,String> parameters, InputStream is) throws UnknownException, WebserviceException
Description copied from interface:BasePluginExecute plugin post return file input stream.- Specified by:
executePluginPostReturnFilein interfaceBasePlugin- Parameters:
className- the class nameparameters- the parametersis- the is- Returns:
- the input stream
- Throws:
UnknownException- the unknown exceptionWebserviceException- the webservice exception
-
executePluginGet
public Object executePluginGet(String className, Map<String,String> parameters, Class<?> clazz) throws UnknownException, WebserviceException
Description copied from interface:BasePluginExecute plugin get object.- Specified by:
executePluginGetin interfaceBasePlugin- Parameters:
className- the class nameparameters- the parametersclazz- the clazz- Returns:
- the object
- Throws:
UnknownException- the unknown exceptionWebserviceException- the webservice exception
-
executePluginGetReturnFile
public InputStream executePluginGetReturnFile(String className, Map<String,String> parameters) throws UnknownException, WebserviceException
Description copied from interface:BasePluginExecute plugin get return file input stream.- Specified by:
executePluginGetReturnFilein interfaceBasePlugin- Parameters:
className- the class nameparameters- the parameters- Returns:
- the input stream
- Throws:
UnknownException- the unknown exceptionWebserviceException- the webservice exception
-
-