Package es.gob.afirma.tsaServiceInvoker
Class AbstractTSAServiceInvoker
- java.lang.Object
-
- es.gob.afirma.tsaServiceInvoker.AbstractTSAServiceInvoker
-
- Direct Known Subclasses:
TSA3WebServiceInvoker
public abstract class AbstractTSAServiceInvoker extends java.lang.ObjectClass that defines the common functionality for all the classes which allow to invoke the web services of TS@.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 09/01/2014.
-
-
Constructor Summary
Constructors Constructor Description AbstractTSAServiceInvoker(java.lang.String serviceParam)Constructor method for the class AbstractTSAServiceInvoker.java.AbstractTSAServiceInvoker(java.lang.String serviceParam, java.lang.String applicationNameParam)Constructor method for the class AbstractTSAServiceInvoker.java.AbstractTSAServiceInvoker(java.lang.String serviceParam, java.lang.String applicationNameParam, java.lang.String idClient)Constructor method for the class AbstractTSAServiceInvoker.java.AbstractTSAServiceInvoker(java.util.Properties serviceInvocationPropertiesParam, java.lang.String serviceParam)Constructor method for the class AbstractTSAServiceInvoker.java.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.PropertiesgetGeneralProperties()Gets the value of the attributegeneralProperties.java.lang.StringgetService()Gets the value of the attributeservice.java.util.PropertiesgetServiceInvocationProperties()Gets the value of the attributeserviceInvocationProperties.abstract java.lang.StringinvokeService(java.lang.Object[] parameters, java.lang.String idClient)Method that invokes a web service published by TS@.
-
-
-
Constructor Detail
-
AbstractTSAServiceInvoker
public AbstractTSAServiceInvoker(java.lang.String serviceParam)
Constructor method for the class AbstractTSAServiceInvoker.java.- Parameters:
serviceParam- Parameter that represents the name of the service to invoke.
-
AbstractTSAServiceInvoker
public AbstractTSAServiceInvoker(java.util.Properties serviceInvocationPropertiesParam, java.lang.String serviceParam)Constructor method for the class AbstractTSAServiceInvoker.java.- Parameters:
serviceInvocationPropertiesParam- Parameter that represents the set of configuration parameters of the service to invoke.serviceParam- Parameter that represents the name of the service to invoke.
-
AbstractTSAServiceInvoker
public AbstractTSAServiceInvoker(java.lang.String serviceParam, java.lang.String applicationNameParam, java.lang.String idClient)Constructor method for the class AbstractTSAServiceInvoker.java.- Parameters:
serviceParam- Parameter that represents the name of the service to invoke.applicationNameParam- Parameter that represents the name of the application which invokes the service.idClient- Parameter that represents the client application identifier.
-
AbstractTSAServiceInvoker
public AbstractTSAServiceInvoker(java.lang.String serviceParam, java.lang.String applicationNameParam)Constructor method for the class AbstractTSAServiceInvoker.java.- Parameters:
serviceParam- Parameter that represents the name of the service to invoke.applicationNameParam- Parameter that represents the name of the application which invokes the service.
-
-
Method Detail
-
getServiceInvocationProperties
public final java.util.Properties getServiceInvocationProperties()
Gets the value of the attributeserviceInvocationProperties.- Returns:
- the value of the attribute
serviceInvocationProperties.
-
getGeneralProperties
public final java.util.Properties getGeneralProperties()
Gets the value of the attributegeneralProperties.- Returns:
- the value of the attribute
generalProperties.
-
invokeService
public abstract java.lang.String invokeService(java.lang.Object[] parameters, java.lang.String idClient) throws TSAServiceInvokerExceptionMethod that invokes a web service published by TS@.- Parameters:
parameters- Parameter that represents the list of inputs.idClient- client identifier of ws invocation.- Returns:
- the result of the invocation on XML format.
- Throws:
TSAServiceInvokerException- if the method fails.
-
-