Riferimenti per la classe org.jaebi.test.server.service.MainTestServicePackage

Lista di tutti i membri.

Descrizione Dettagliata

Autore:
detro

Definizione alla linea 35 del file MainTestServicePackage.java.

Membri pubblici statici

static void main (String[] args)


Documentazione delle funzioni membro

static void org.jaebi.test.server.service.MainTestServicePackage.main String[]  args  )  [static]
 

Parametri:
args the command line arguments

Definizione alla linea 40 del file MainTestServicePackage.java.

Riferimenti org.jaebi.server.service.XRequestCommandFactory.createCommand(), org.jaebi.server.service.XRequestCommand.execute(), org.jaebi.server.service.xml.JAXBMarshallerWrapper.marshall(), org.jaebi.server.service.xml.JAXBMarshallerWrapper.setFormattedMarshalling(), e org.jaebi.server.service.xml.JAXBMarshallerWrapper.unmarshall().

00040                                            {
00041         BackEndHandler beh = null;
00042         JAXBMarshallerWrapper marshWrap;
00043         
00044         Xrequest newReq = null;
00045         Xresponse newRes = null;
00046         
00047         File sourceFile = new File("/Users/detro/workspace-nb/L2-Project-JAEBI/xrequest-example.xml");
00048         XRequestCommandFactory commFact;
00049         XRequestCommand newCommand = null;
00050         
00051         String result = null;
00052         
00053         
00054         try {
00055             beh = new BackEndHandlerImpl();
00056         } catch ( BackEndHandlerInitException behie ) {
00057             System.out.println("Errore: " + behie);
00058             behie.printStackTrace();
00059         }
00060         
00061         try {
00062             marshWrap = new JAXBMarshallerWrapperImpl("org.jaebi.server.service.xml.xrequest");
00063             newReq = (Xrequest)marshWrap.unmarshall(sourceFile);
00064         } catch ( JAXBMarshallerWrapperInitException inite) {
00065             inite.printStackTrace();
00066         } catch ( JAXBMarshallerWrapperUnmarshallException unmarshe) {
00067             unmarshe.printStackTrace();
00068         }
00069         
00070         try {
00071             commFact = new XRequestCommandFactory(beh);
00072             newCommand = commFact.createCommand(newReq);
00073         } catch ( XRequestCommandFactoryInitException inite) {
00074             inite.printStackTrace();
00075         } catch ( CommandCreationException cce) {
00076             cce.printStackTrace();
00077         }
00078         
00079         System.out.println("Command Creato: \n" + newCommand );
00080         
00081         try {
00082             newRes = (Xresponse)newCommand.execute();
00083         } catch ( CommandExecException cee ) {
00084             cee.printStackTrace();
00085         }
00086         
00087         try {
00088             JAXBMarshallerWrapper marshWrapResp = new JAXBMarshallerWrapperImpl("org.jaebi.server.service.xml.xresponse");
00089             marshWrapResp.setFormattedMarshalling(true);
00090             result = marshWrapResp.marshall(newRes);
00091         } catch ( JAXBMarshallerWrapperInitException inite) {
00092             inite.printStackTrace();
00093         } catch ( JAXBMarshallerWrapperMarshallException marshe) {
00094             marshe.printStackTrace();
00095         }
00096         
00097         System.out.println("Risultato Command: \n" + result);
00098     }

Questo è il grafo delle chiamate per questa funzione:


La documentazione per questa classe è stata generata a partire dal seguente file:
Generato il Mon Jun 27 22:50:54 2005 per JAEBI - JAva Enterprice BackEnd Interfacement da  doxygen 1.4.3