Class Client

java.lang.Object
lt.viko.eif.jguscia.Client

public class Client extends Object
Client responsible for connecting to the server and processing received XML data.

The client receives XML from the server, validates it against an XSD schema, converts it to POJO objects, stores the data in an H2 database, and finally converts the data back to XML.

  • Constructor Details

    • Client

      public Client()
  • Method Details

    • separateOutput

      public void separateOutput()
      Prints a separator line to make console output easier to read.
    • start

      public void start()
      Starts the client workflow. <p> Steps performed: <ol> <li>Connect to the </li> <li>Receive XML data</li> <li>Validate XML against XSD</li> <li>Convert XML to POJO objects</li> <li>Store data in H2 database</li> <li>Convert POJO back to XML and print the result</li> </ol>