# US 8,280,950 B2 · Automatic client-server code generator

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,280,950 B2
- Document ID: US8280950B2
- Status: Granted
- Kind: B2
- Application number: 12/699,179
- Filed: 2010-02-03
- Published: 2011-08-04
- Granted: 2012-10-02
- Earliest claimed: 2010-02-03
- Assignees: Xsignnet Ltd.
- Inventors: Gil Boruhovski; Efri Zeidner
- Web page: https://patentgrep.com/patent/US8280950B2

## CPC

- G06F 15/16: Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs {(coordinating program control therefor G06F9/52; in regulating and control system G05B)}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## 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.

## Claims

### Claim 1

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.

### Claim 2 (depends on 1)

The method of claim 1 further comprising stage (e) of displaying a textual message within said server CLI response-object on a display.

### Claim 3 (depends on 1)

The method of claim 1 wherein said client CLI communication class, said server CLI communication class and said client class-header are generated by utilizing Google Protocol Buffer utility.

### Claim 4 (depends on 1)

The method of claim 1 wherein said client class-header is an XML based header and is generated by utilizing Simple Object Access Protocol.

### Claim 5 (depends on 1)

The method of claim 1 wherein said server CLI response-object is generated by said server based on a server CLI communication class corresponding to said CLI-command.

### Claim 6 (depends on 1)

The method of claim 1 wherein said CLI response further comprises said server CLI response-object.

### Claim 7 (depends on 1)

The method of claim 1 wherein said determining is performed by comparing said client class-header with at least one other client class-header stored at said data-repository.

### Claim 8

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.

### Claim 9 (depends on 8)

The method of claim 8 wherein said CLI response further comprises said server CLI response-object.

### Claim 10 (depends on 8)

The method of claim 8 wherein stage (d) is performed in response to a request issued by said client.

### Claim 11 (depends on 8)

The method of claim 8 wherein a Google Protocol Buffer utility is used to instruct a processor to generate said client CLI communication class, said server CLI communication class and said client class-header.

### Claim 12 (depends on 8)

The method of claim 8 wherein said client class-header is an XML based header and is generated by utilizing Simple Object Access Protocol.

### Claim 13 (depends on 8)

The method of claim 8 wherein said server is associated with at least one data repository and wherein said server CLI communication class, said client CLI communication class and said client class-header are obtained from said at least one data-repository.

### Claim 14

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.

### Claim 15 (depends on 14)

The client of claim 14 being associated with a display and wherein said client CLI process is further configured to display the information within said server CLI response-object on said display.

### Claim 16 (depends on 14)

The client of claim 14 wherein said client class-header is generated by Google Protocol Buffer utility.

### Claim 17 (depends on 14)

The server of claim 14 wherein said CLI-response is divided into two parts, a first part comprising said server CLI response-object and class-header and a second part comprising client CLI communication class; and wherein said server CLI application is configured to send said first part in response to a CLI-command and send said second part in response to a specific request from said client.

### Claim 18

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.

### Claim 19 (depends on 18)

The server of claim 18 wherein said server CLI communication class, client CLI communication class and client class-header are generated by utilizing Google Protocol Buffers utility.
