Finished translating to Spanish.
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@62 db60a039-f72e-0410-b1d2-baa000846441
This commit is contained in:
+14
-14
@@ -1,32 +1,32 @@
|
||||
-----
|
||||
Configuring with Spring
|
||||
Configuración con Spring
|
||||
-----
|
||||
|
||||
Configuration via Spring
|
||||
Configurando j8583 con Spring
|
||||
|
||||
You can configure a MessageFactory as a bean in a Spring ApplicationContext, and inject it into any
|
||||
other components that need to create or parse IsoMessages.
|
||||
Se puede definir una MessageFactory como un componente en un ApplicationContext de Spring, para poder
|
||||
inyectarlo en cualquier otro componente que la necesita para crear o leer mensajes ISO.
|
||||
|
||||
* Setting up the MessageFactory
|
||||
* Configuración de la MessageFactory
|
||||
|
||||
The properties that you want to set up in the Spring config are:
|
||||
Las propiedades que se pueden configurar en la definición del componente en Spring son:
|
||||
|
||||
*------------+---------------------------------+
|
||||
| configPath | Specify the path to the XML configuration file with the message and parsing templates.
|
||||
| configPath | Indica la ruta al archivo de configuración XML que contiene las plantillas de mensajes y de lectura. Debe ser una ruta dentro del classpath.
|
||||
*------------+---------------------------------+
|
||||
| customFields | A map with the CustomField implementations that should be used for each field (the keys are the field numbers).
|
||||
| customFields | Un mapa con los CustomFields que se deben usar en cada campo que los requiera (las llaves son los números de campo).
|
||||
*------------+---------------------------------+
|
||||
| assignDate | Set it to true to have the MessageFactory set field 7 to a DATE10 with the date the message was created.
|
||||
| assignDate | Se pone en <true> para que la MessageFactory le ponga la fecha actual a los mensajes nuevos en el campo 7, tipo DATE10.
|
||||
*------------+---------------------------------+
|
||||
| etx | Set it to the numeric value of the message terminator, or -1 if you don't want to use a terminator.
|
||||
| etx | Se indica el valor numérico del caracter que debe ser el terminador de mensajes, o -1 para no usar un terminador.
|
||||
*------------+---------------------------------+
|
||||
| forceSecondaryBitmap | If true, then the messages will include the secondary bitmap even if they don't contain any fields above 64. Some providers require this.
|
||||
| forceSecondaryBitmap | Si se activa, los mensajes creados incluirán el bitmap secundario en la trama generada aún cuando no tengan campos del 65 al 128. Algunos proveedores requieren esto.
|
||||
*------------+---------------------------------+
|
||||
| ignoreLastMissingField | If true, then the factory only logs a warning when parsing incomplete messages. By default it will throw a ParseException.
|
||||
| ignoreLastMissingField | Si se activa esta propiedad, entonces al leer mensajes que se terminan antes de haber procesado todos los campos indicados en el bitmap, únicamente se imprime una advertencia en la bitácora. Normalmente (con la propiedad desactiva) se arroja una ParseException cuando faltan campos en el mensaje.
|
||||
*------------+---------------------------------+
|
||||
| useBinaryMessages | Can be true or false (default false). The factory passes this value to new messages so that they're encoded in binary or ASCII.
|
||||
| useBinaryMessages | Si se activa esta propiedad, se pasa a los mensajes creados para que al generar sus tramas lo hagan en formato binario. El default es que se utilice ASCII.
|
||||
*------------+---------------------------------+
|
||||
| traceNumberGenerator | Set to an implementation of TraceNumberGenerator so that the factory sets a new trace value in field 11 on new messages.
|
||||
| traceNumberGenerator | Se pasa la implementación de TraceNumberGenerator para que la fábrica pueda ponerle un nuevo número de traza en el campo 11 a los mensajes creados.
|
||||
*------------+---------------------------------+
|
||||
|
||||
Example:
|
||||
|
||||
+20
-19
@@ -1,31 +1,32 @@
|
||||
-----
|
||||
XML Configuration
|
||||
Configuración por XML
|
||||
-----
|
||||
|
||||
XML Configuration
|
||||
Configuración por XML
|
||||
|
||||
The MessageFactory can read a XML file to setup message templates, ISO headers by type and parsing templates,
|
||||
which are the most cumbersome parts to configure programmatically.
|
||||
La clase MessageFactory puede leer un archivo XML para congfigurar sus plantillas de mensajes, encabezados ISO
|
||||
y plantillas de lectura, que son las partes más tediosas de configurar por código.
|
||||
|
||||
There are three types of main elements that you need to specify in the config file: <<<header>>>,
|
||||
<<<template>>>, and <<<parse>>>. All these must be contained in a single <<<j8583-config>>> element.
|
||||
There is a DTD available at {{{http://j8583.sourceforge.net/j8583.dtd}}}.
|
||||
Hay tres tipos principales de elementos que se deben especificar en el archivo de configuración: <<<header>>>,
|
||||
<<<template>>> y <<<parse>>>. Estos deben ir dentro de un único elemento <<<j8583-config>>> en el archivo.
|
||||
Existe un DTD disponible en {{{http://j8583.sourceforge.net/j8583.dtd}}}.
|
||||
|
||||
* <<<header>>> element
|
||||
* Elemento <<<header>>>
|
||||
|
||||
Specify a <<<header>>> element for every type of message that needs an ISO header. Only one per message type:
|
||||
Se debe especificar un elemento <<<header>>> por cada tipo de mensaje que necesita un encabezado ISO,
|
||||
únicamente uno por cada tipo de mensaje:
|
||||
|
||||
+-----
|
||||
<header type="0200">ISO015000050</header>
|
||||
<header type="0400">ISO015000050</header>
|
||||
+-----
|
||||
|
||||
* <<<template>>> element
|
||||
* Elemento <<<template>>>
|
||||
|
||||
Each <<<template>>> element defines a message template, with the message type and the fields that the
|
||||
template should include. Every new message of that type that the MessageFactory creates will contain those
|
||||
same values, so this is very useful for defining fixed values, which will be the same in every message.
|
||||
Only one template per type.
|
||||
Cada elemento <<<template>>> define una plantilla de mensaje, con el tipo del mismo y los campos que debe
|
||||
incluir, con sus valores ya definidos. Cada mensaje de este tipo que se pida a la fábrica de mensajes, contendrá
|
||||
los valores definidos en la plantilla. Esto es muy útil para campos que siempre tienen el mismo valor en todos
|
||||
los mensajes creados. Solamente se permite una plantilla por tipo.
|
||||
|
||||
+-----
|
||||
<template type="0200">
|
||||
@@ -42,12 +43,12 @@ XML Configuration
|
||||
</template>
|
||||
+-----
|
||||
|
||||
* <<<parse>>> element
|
||||
* Elemento <<<parse>>>
|
||||
|
||||
Each <<<parse>>> element defines a parsing template for a message type. It must include all the fields that
|
||||
an incoming message can contain, each field with its type and length (if needed). Only ALPHA and NUMERIC
|
||||
types need to have a length specified. The other types either have a fixed length, or have their length
|
||||
specified as part of the field (LLVAR and LLLVAR).
|
||||
Cada elemento <<<parse>>> define una plantilla de lectura para un tipo de mensaje. Debe incluir todos los
|
||||
campos que el mensaje entrante pueda contener, indicando el tipo y longitud de cada campo (la longitud depende
|
||||
del tipo de dato). Solamente los tipos ALPHA y NUMERIC deben incluir longitud, los demás ya la tienen predefinida
|
||||
o la toman del mismo campo cuando se lee el mensaje (LLVAR y LLLVAR).
|
||||
|
||||
+-----
|
||||
<parse type="0210">
|
||||
|
||||
Reference in New Issue
Block a user