Package es.gob.afirma.wsServiceInvoker
Class AbstractWSServiceInvoker
- java.lang.Object
-
- es.gob.afirma.wsServiceInvoker.AbstractWSServiceInvoker
-
- Direct Known Subclasses:
Afirma5WebServiceInvoker,EvisorWebServiceInvoker
public abstract class AbstractWSServiceInvoker extends java.lang.ObjectClass that defines the common functionality for all the classes which allow to invoke the web services of @Firma.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 24/12/2014.
-
-
Constructor Summary
Constructors Constructor Description AbstractWSServiceInvoker(java.lang.String svc)Constructor method for the class AbstractAfirma5ServiceInvoker.java.AbstractWSServiceInvoker(java.lang.String appName, java.lang.String svc, java.lang.String idClient, boolean isEvisor)Constructor method for the class AbstractAfirma5ServiceInvoker.java.AbstractWSServiceInvoker(java.lang.String svc, java.util.Properties svcInvProperties)Constructor method for the class AbstractAfirma5ServiceInvoker.java.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetApplicationName()Gets the value of the attributeapplicationName.java.lang.StringgetService()Gets the value of the attributeservice.java.util.PropertiesgetServiceInvocationProperties()Gets the value of the attributeserviceInvocationProperties.abstract java.lang.StringinvokeService(java.lang.String methodName, java.lang.Object[] parameters)Method that invokes a web service published by @Firma.voidsetServiceInvocationProperties(java.util.Properties srvInvokeProp)Sets the value of the attributeserviceInvocationProperties.
-
-
-
Constructor Detail
-
AbstractWSServiceInvoker
public AbstractWSServiceInvoker(java.lang.String svc)
Constructor method for the class AbstractAfirma5ServiceInvoker.java.- Parameters:
svc- Parameter that represents the name of the service to invoke.
-
AbstractWSServiceInvoker
public AbstractWSServiceInvoker(java.lang.String svc, java.util.Properties svcInvProperties)Constructor method for the class AbstractAfirma5ServiceInvoker.java.- Parameters:
svc- Parameter that represents the name of the service to invoke.svcInvProperties- Parameter that represents the set of configuration parameters of the service to invoke.
-
AbstractWSServiceInvoker
public AbstractWSServiceInvoker(java.lang.String appName, java.lang.String svc, java.lang.String idClient, boolean isEvisor)Constructor method for the class AbstractAfirma5ServiceInvoker.java.- Parameters:
appName- Parameter that represents the name of the application which invokes the service.svc- Parameter that represents the name of the service to invoke.idClient- Parameter that represents the client application identifier.isEvisor- Parameter that represents if is a eVisor invocation.
-
-
Method Detail
-
invokeService
public abstract java.lang.String invokeService(java.lang.String methodName, java.lang.Object[] parameters) throws WSServiceInvokerExceptionMethod that invokes a web service published by @Firma.- Parameters:
methodName- Parameter that represents the name of the methof to invoke.parameters- Parameter that represents the list of inputs.- Returns:
- the result of the invocation on XML format.
- Throws:
WSServiceInvokerException- If the method fails.
-
getService
public final java.lang.String getService()
Gets the value of the attributeservice.- Returns:
- the value of the attribute
service.
-
getApplicationName
public final java.lang.String getApplicationName()
Gets the value of the attributeapplicationName.- Returns:
- the value of the attribute
applicationName.
-
getServiceInvocationProperties
public final java.util.Properties getServiceInvocationProperties()
Gets the value of the attributeserviceInvocationProperties.- Returns:
- the value of the attribute
serviceInvocationProperties.
-
setServiceInvocationProperties
public final void setServiceInvocationProperties(java.util.Properties srvInvokeProp)
Sets the value of the attributeserviceInvocationProperties.- Parameters:
srvInvokeProp- The value for the attributeserviceInvocationProperties.
-
-