|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--submarine.core.ChannelInfos
Informations de configuration d'un Channel.
Ces informations sont externalisées dans cette classe plutôt que directement dans la classe Channel car un Channel doit être "poolable" donc potentiellement sans état.
Channel.init(submarine.core.ChannelInfos), Serialized Form| Field Summary | |
boolean[] |
archive
Un tableau de 4 boolean pour paraméter ce qui doit être archivé. |
java.lang.String |
destination
La destination du Channel. |
java.lang.String |
errorWriterName
Le nom de la WritingFunction servant à traiter les erreur su ce Channel.
|
static int |
IN
Le message java.lang.Object entrant. |
static int |
IN_XML
Le message org.w3c.xml.Document entrant. |
java.lang.String |
msgType
Le type du message. |
java.lang.String |
name
Le nom du Channel. |
static int |
OUT
Le message java.lang.Object sortant, le résultat de la fonction Channel.submit(java.lang.Object, submarine.core.RouteInfos, submarine.core.Message.MsgContext, submarine.core.ChannelInfos). |
static int |
OUT_XML
Le message org.w3c.xml.Document sortant, après la transformation XSL. |
java.lang.String |
parserClassName
Le nom complet de la classe qui doit implémenter Serializer pour le
parsing vers XML. |
java.lang.String |
serializerClassName
Le nom complet de la classe qui doit implémenter Serializer pour la
serialisation depuis XML. |
java.lang.String |
source
La source du Channel. |
java.lang.String |
writerName
Le nom de la WritingFunction servant à transmettre le message
transformé à la destination. |
org.w3c.dom.Element |
xmlParserConfig
L'element xml pour la configuration du parser. |
org.w3c.dom.Element |
xmlSerializerConfig
L'element xml pour la configuration du sérialiser. |
XSLTransformInfos |
xslInfos
Les informations relatives à la transformation XSL. |
| Constructor Summary | |
ChannelInfos()
Construit une nouvelle instance vide. |
|
ChannelInfos(org.w3c.dom.Element xml)
Contruit une nouvelle instance à partir d'un élément XML. |
|
| Method Summary | |
void |
init(org.w3c.dom.Element xml)
Initialise l'instance de l'objet depuis un element XML. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int IN
EAISystem.archive(java.lang.String, java.lang.Object, submarine.core.Message.MsgContext, int).public static final int IN_XML
EAISystem.archive(java.lang.String, java.lang.Object, submarine.core.Message.MsgContext, int).public static final int OUT
Channel.submit(java.lang.Object, submarine.core.RouteInfos, submarine.core.Message.MsgContext, submarine.core.ChannelInfos). Code pour EAISystem.archive(java.lang.String, java.lang.Object, submarine.core.Message.MsgContext, int).public static final int OUT_XML
EAISystem.archive(java.lang.String, java.lang.Object, submarine.core.Message.MsgContext, int).public java.lang.String name
EAISystem.selectChannels(submarine.core.RouteInfos)public java.lang.String msgType
EAISystem.selectChannels(submarine.core.RouteInfos)public java.lang.String parserClassName
Serializer pour le
parsing vers XML. Dans ce cas seule la fonction Serializer.serializeObject(java.lang.Object) sera
utilisée.public java.lang.String source
EAISystem.selectChannels(submarine.core.RouteInfos)public java.lang.String serializerClassName
Serializer pour la
serialisation depuis XML. Dans ce cas seule la fonction Serializer.serializeXML(org.w3c.dom.Document)
sera utilisée.public java.lang.String destination
EAISystem.selectChannels(submarine.core.RouteInfos)public java.lang.String writerName
WritingFunction servant à transmettre le message
transformé à la destination.public java.lang.String errorWriterName
WritingFunction servant à traiter les erreur su ce Channel.
Facultatif.public boolean[] archive
IN, IN_XML, OUT, OUT_XML.public XSLTransformInfos xslInfos
XSLTransformInfospublic org.w3c.dom.Element xmlParserConfig
XMLConfigurable.init(org.w3c.dom.Element) pour le parser.public org.w3c.dom.Element xmlSerializerConfig
XMLConfigurable.init(org.w3c.dom.Element) pour le parser.| Constructor Detail |
public ChannelInfos()
public ChannelInfos(org.w3c.dom.Element xml)
xml - L'élément XML contenant les informations.pour la structure de l'élément xml.| Method Detail |
public void init(org.w3c.dom.Element xml)
<!-- un élément quelconque, la méthode ne le teste pas --> <element name="nom du Channel"> <msgType>Le type du message</msgType> <parser class="package.class"/> <!-- class="eai-empty" pour ne pas avoir de parser. Dans ce cas le Channel tente de caster le message en entrée en un document XML --> <!-- voirSerializer--> <source>Le nom de la source</source> <xsl-template> <!--XSLTransformInfos.XSLTransformInfos(Element)--> <file>file/subdir/stylesheet.xsl</file> </xsl-template> <serializer class="package.class"/> <!-- class="eai-empty" pour ne pas avoir de serializer. Dans ce cas le Channel transmet le document XML à la WritingFunction --> <!-- voirSerializer--> <destination>Le nom de la destination</destination> <writer>le nom de la WritingFunction</writer><!-- voirEAISystem.setConfig(java.lang.String)--> <on-error-writer>name</on-error-writer> <!-- le nom de la WritingFunction pour le traitement des erreurs --> <archive in="yes" in.xml="yes" out.xml="yes" out="yes"/> <!-- défini quel résulat d'étape doit être archivé. voirEAISystem.archive(java.lang.String, java.lang.Object, submarine.core.Message.MsgContext, int)--> </element>
xml - l'élément XML dans lequel sera lue la configuration.
|
Submarine project. free distribution of this software must include the opensource licence. Guénolé de Cadoudal. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||