Class CertValidationParseTransformer
- java.lang.Object
-
- es.gob.afirma.transformers.parseTransformers.CertValidationParseTransformer
-
- All Implemented Interfaces:
IParseTransformer
public class CertValidationParseTransformer extends java.lang.Object implements IParseTransformer
Class that processes the responses of certificate validation from the web services of @Firma.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.1, 18/04/2022.
-
-
Constructor Summary
Constructors Constructor Description CertValidationParseTransformer(java.lang.String req, java.lang.String methodParam, java.lang.String msgVersion)Constructor method for the class CertValidationParseTransformer.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
-
CertValidationParseTransformer
public CertValidationParseTransformer(java.lang.String req, java.lang.String methodParam, java.lang.String msgVersion)Constructor method for the class CertValidationParseTransformer.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()
-
-