Class AnyOutParameterParseTransformer
- java.lang.Object
-
- es.gob.afirma.transformers.parseTransformers.AnyOutParameterParseTransformer
-
- All Implemented Interfaces:
IParseTransformer
public class AnyOutParameterParseTransformer extends java.lang.Object implements IParseTransformer
Class that represents a parser for output parameters related to the web services of @Firma, eVisor and TS@.
Project:@Firma and TS@ Web Services Integration Platform.
- Version:
- 1.1, 18/04/2022.
-
-
Constructor Summary
Constructors Constructor Description AnyOutParameterParseTransformer(java.lang.String req, java.lang.String methodParam, java.lang.String msgVersion)Constructor method for the class AnyOutParameterParseTransformer.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessageVersion()Method that obtains the version of the message used to configure the parser.java.lang.StringgetMethod()Method that obtains the name of the method of the web service used to configure the parser.java.lang.StringgetRequest()Method that obtains the name of the service used to configure the parser.java.lang.Objecttransform(java.lang.String xmlResponse)Method that transforms the response to a java object.
-
-
-
Constructor Detail
-
AnyOutParameterParseTransformer
public AnyOutParameterParseTransformer(java.lang.String req, java.lang.String methodParam, java.lang.String msgVersion)Constructor method for the class AnyOutParameterParseTransformer.java.- Parameters:
req- Parameter that represents the request.methodParam- Parameter that represents method name.msgVersion- Parameter that represents the version of the message.
-
-
Method Detail
-
getRequest
public final java.lang.String getRequest()
Method that obtains the name of the service used to configure the parser.- Specified by:
getRequestin interfaceIParseTransformer- Returns:
- the name of the service used to configure the parser.
- See Also:
IParseTransformer.getRequest()
-
getMessageVersion
public final java.lang.String getMessageVersion()
Method that obtains the version of the message used to configure the parser.- Specified by:
getMessageVersionin interfaceIParseTransformer- Returns:
- the version of the message used to configure the parser.
- See Also:
IParseTransformer.getMessageVersion()
-
transform
public final java.lang.Object transform(java.lang.String xmlResponse) throws TransformersExceptionMethod that transforms the response to a java object.- Specified by:
transformin interfaceIParseTransformer- Parameters:
xmlResponse- Parameter that represents the XML response.- Returns:
- an object that represents the processed XML response.
- Throws:
TransformersException- If the method fails.- See Also:
IParseTransformer.transform(java.lang.String)
-
getMethod
public final java.lang.String getMethod()
Method that obtains the name of the method of the web service used to configure the parser.- Specified by:
getMethodin interfaceIParseTransformer- Returns:
- the name of the method of the web service used to configure the parser.
- See Also:
IParseTransformer.getMethod()
-
-