Automatic client-server code generator
AssigneeXsignnet Ltd.
InventorsGil Boruhovski, Efri Zeidner
Life of this patent
Estimating the term…
Abstract
A system and method which enables clients to automatically generate client CLI response-objects directed for reading new unfamiliar server CLI response-objects which are received from servers without the need to write or obtain new code for each new server response-object.
Claims19
A method of automatic generation of client command line interface (CLI) response-objects, said objects being configured for reading a server CLI response-object sent by a server to a client in response to a CLI-command sent by said client, the method being carried out in a client, and comprising:
- (a) receiving from said server at least one CLI response comprising at least a server CLI response-object and a client class-header of a corresponding client CLI communication class, said client CLI communication class being configured for generating the client CLI response-object for reading said server CLI response-object;
- (b) determining whether said client CLI communication class is stored in a data-repository associated with said client wherein in case said client CLI communication class is not stored in said data-repository, requesting said client CLI communication class from said server and receiving said client CLI communication class from said server;
- and wherein in case said client CLI communication class is stored in said data-repository, retrieving said client CLI communication class from said data-repository;
- (c) generating a client CLI response-object configured for reading said server CLI response-object, wherein said generating is based on said client CLI communication class and said received client class-header and by using a processor for utilizing reflection programming;
- and
- (d) utilizing said client CLI response-object for reading data provided within said server CLI response-object, wherein said utilizing is performed by using a processor.
A method of automatic generation of client command line interface (CLI) response-objects configured for reading a server CLI response-object sent by a server to a client in response to CLI command sent by said client, the method being carried out in a server and comprising:
- (a) retrieving from a communication-classes data-repository a server CLI communication class, a client CLI communication class and a client class-header that are associated with said CLI-command;
- said server CLI communication class is adapted for generating a server CLI response-object, which is unfamiliar to the client, and said client CLI communication class is constructed according to specific characteristics of said client and configured for generating a client CLI response-object for reading data within said CLI response-object;
- (b) generating a server CLI response-object of said CLI-command, wherein said generating is based on said server CLI communication class and is performed by using a processor, and;
- (c) sending a CLI response to said client in reply to said CLI-command from said client;
- said CLI response comprising at least said server CLI response-object and said client class-header;
- and
- (d) sending said client CLI communication class to said client;
- wherein said client CLI communication class and said client class-header enable said client to generate, with the help of reflection programming, a client CLI response-object, and to utilize said client CLI response-object for reading information from said server CLI response-object.
A client being operable in a client-server communication architecture, said client being configured to read a server command line interface (CLI) response-object sent by a server in response to a CLI-command, said client comprising:
- a processor, and a client CLI process, the client CLI process comprising a CLI object generator;
- said processor being configured to perform tasks in response to instruction generated by said client;
- said client CLI process is configured to send a CLI-command to a server and receive a CLI response from said server, said CLI response comprising, a client class-header and a server CLI response-object;
- said client CLI process is configured to determine whether a client CLI communication class associated with said client class-header is stored in a data-repository associated with said client;
- wherein in case said client CLI communication class is not stored in said data-repository, said client CLI process is configured to request said client CLI communication class from said server and to receive said client CLI communication class from said server;
- and wherein in case said client CLI communication class is stored in said data-repository, said client CLI process is configured to retrieve said client CLI communication class from said data-repository;
- said client CLI object generator is configured to provide said processor with instructions for generating a client CLI response-object, wherein said client CLI response-object is generated with the help of reflection programming, based on said client class-header and said client CLI communication class;
- said CLI process is further configured to provide said processor with instructions for utilizing said client CLI response-object for reading said server CLI response-object.
A server being operable in a client-server communication architecture, said server being configured for receiving a command line interface (CLI)-command from a client and returning a server CLI response-object to said client the server comprising:
- a CLI server process and a processor;
- said processor being configured to perform tasks in response to instructions generated by said server;
- in response to a CLI-command received from a client, said CLI server process is configured to instruct said processor to perform at least the following:
- (a) retrieve from a data-repository a corresponding server CLI communication class configured for generating a server CLI response-object, which is unfamiliar to the client;
- (b) retrieve from said data-repository a client CLI communication class associated with said CLI-command;
- wherein the CLI communication class is constructed according to specific characteristics of said client and configured for generating a CLI object for reading said server CLI response-object;
- (c) retrieve from said data-repository a client CLI communication class-header, associated with said CLI-command and corresponding to said client CLI communication class;
- (d) generate a server CLI-response-object being an instance of said server CLI communication class;
- said CLI server application is further configured to send to said client a CLI-response, said CLI response comprising said server CLI-response-object, said class-header and said client CLI communication class, thereby enabling said client to utilize said class-header and said client CLI communication class and, with the help of reflection programming, to generate a client CLI response-object configured for reading said server CLI response-object.
Dependencies are inferred from the claim text.