# US 7,412,495 B2 · Method, system, and article of manufacture for a server side application

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

- Number: US 7,412,495 B2
- Document ID: US7412495B2
- Status: Granted
- Kind: B2
- Application number: 10/133,014
- Filed: 2002-04-26
- Published: 2003-10-30
- Granted: 2008-08-12
- Earliest claimed: 2002-04-26
- Assignees: Sun Microsystems, Inc.
- Inventors: Shawn X. Nguyen
- Web page: https://patentgrep.com/patent/US7412495B2

## CPC

- G06F 16/972: {Access to data in other repository systems, e.g. legacy data or dynamic Web page generation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are a method, system, and article of manufacture for processing requests in a server side application. The server side application receives a request in a communications protocol from a client. The server side application modifies the request to create a communications protocol independent request. The server side application generates a response by processing the communications protocol independent request. Subsequently, the server side application sends the generated response in the communications protocol to the client.

## Claims

### Claim 1

A method for processing requests in a server side application, the method comprising:
receiving a first request in a first communications protocol from a client;
modifying the first request in a first communications protocol to create a communications protocol independent request, wherein the server side application modifies the first request in a first communications protocol into the communications protocol independent request comprising a table having key and value pairs corresponding to query parameters in the first request
wherein said first request includes authentication data and cookies and wherein said communications protocol independent request is provided in a form interpretable by a server side application;
generating a response by processing the communications protocol independent request;
sending the generated response in the first communications protocol to the client;
wherein said first request includes user input encoded in a Uniform Resource Locator (URL); and
submitting said first request including the user input encoded in the URL in response to Common Gateway Interface (CGI) based source code included within the server side application.

### Claim 2 (depends on 1)

The method of claim 1, wherein the server side application comprises a plurality of components, including a servlet component, a router component, and a handler component, the method further comprising:
(i) receiving the request from the client at the servlet component, wherein the servlet component modifies the request to create the communications protocol independent request, and forwards the request to the router component, wherein the communications protocol independent request is created by removing commands specific to the communications protocol;
(ii) selecting the handler component at the router component and routing the forwarded request from the router component to the selected handler component; and
(iii) processing with the selected handler component the routed request and generating information, wherein the information is to be included in the response.

### Claim 3 (depends on 2)

The method of claim 2, wherein the generated information is based on data retrieved from a database by the selected handler component, the method further comprising:
receiving at the router component the generated information from the selected handler component;
sending from the router component the generated information to the servlet component; and
sending from the servlet component the generated response including the generated information to the client.

### Claim 4 (depends on 2)

The method of claim 2, wherein the router component and the selected handler component are modifiable by changing source code comprising the router component and the selected handler component and installing at least one executable file derived from the changed source code.

### Claim 5 (depends on 1)

The method of claim 1, wherein the table is communications protocol independent.

### Claim 6 (depends on 1)

The method of claim 1, wherein the communications protocol independent request does not include coding related to the communications protocol used to communicate the request from the client to the server side application.

### Claim 7 (depends on 1)

The method of claim 1, wherein the server side application includes a servlet, wherein the request is an HTTP request, and wherein the method further comprises:
subsequent to receiving the request and prior to generating the response,
(i) transforming at the servlet the HTTP request into a table, wherein the table has key and value pairs corresponding to query parameters in the HTTP request;
(ii) if a session already exists between the servlet and the client, using the session;
(iii) if the session does not exist between the servlet and the client, creating a new session;
(iv) retrieving a database connection from a connection pool, wherein the database connection is returned to the connection pool after the database connection has been used; and
(v) assigning the database connection to the request, wherein after the assignment the request is independent of HTTP communication protocols.

### Claim 8 (depends on 1)

The method of claim 1, wherein components of the server side application are modified to create a new server side application, wherein the modified components are independent of the communications protocol.

### Claim 9 (depends on 8)

The method of claim 8, wherein the new server side application performs:
receiving one request in the communications protocol from one client;
modifying the one request to create one communications protocol independent request;
generating one response by processing the one communications protocol independent request; and
sending the generated response in the communications protocol to the one client.

### Claim 10 (depends on 1)

The method of claim 1 wherein said request includes user input transmitted in a Universal Resource Locator (URL).

### Claim 11

A method for creating a server side application, the method comprising:
installing server side application components on a computational device, wherein the server side application components are coded to perform default request handling operations, wherein the default request handling operations include a first communication protocol to manage communications with remote clients submitting requests to the server side application, wherein the user specified server side application operations include implementing a mapping of the request into key value pairs corresponding to query parameters in the request;
receiving code modifications to at least one server side application component to cause the at least one server side component to perform user specified server side application operations that are independent of the first communications protocol; and
generating executable code from the installed server side application components including the code modifications;
receiving a request at a servlet in the first communications protocol from a client as part of the default request handling operations;
modifying the first request in a first communications protocol at the servlet to create a communications protocol independent request as part of the default request handling operations, wherein the modifying the first request in a first communications protocol to create the communications protocol independent request is a part of the user specified server side application operations;
wherein said first request includes authentication data and cookies and wherein said communications protocol independent request is provided in a form interpretable by a server side application;
sending the communications protocol independent request to a router as part of the default request handling operations;
routing the communications protocol independent request from the router to a selected handler as part of the user specified server side application operations;
generating a response at the selected handler as part of the user specified server side application operations;
sending the generated response to the client from the servlet as part of the
default request handling operations;
wherein said first request includes user input encoded in a Uniform Resource Locator (URL); and
submitting said first request including the user input encoded in the URL in response to Common Gateway Interface (CGI) based source code included within the server side application.

### Claim 12 (depends on 11)

The method of claim 11, wherein the code modifications to the server side application components include:
modifications to a handler component to make a call to an application program; and
modifications to a router component to route requests to the created handler component.

### Claim 13 (depends on 12)

The method of claim 12, wherein the application program comprises a database program, and wherein the call comprises a database query.

### Claim 14 (depends on 12)

The method of claim 12, wherein the modifications to the handler component are made by modifying source code of an existing handler component within the server side application components.

### Claim 15 (depends on 12)

The method of claim 12, wherein the modifications to the handler component are made by coding and adding a new handler component to the server side application components.

### Claim 16 (depends on 11)

The method of claim 11, wherein the communication protocol is HTTP, and the default request handling operations further include a mapping that maps a HTTP request into a form independent of HTTP syntax.

### Claim 17 (depends on 16)

The method of claim 16, wherein the mapping is to name value pairs corresponding to query parameters in the HTTP request, wherein the name value pairs are processed by the user specified server side application operations.

### Claim 18 (depends on 11)

The method of claim 11 wherein modifying the first request in a first communications protocol at the servlet to create a communications protocol independent request as part of the default request handling operations comprises a table having key and value pairs corresponding to query parameters in the first request.

### Claim 19

A system for processing requests, the system comprising:
a server side application running on a first computer of said system;
means for receiving a first request in a first communications protocol from a client at the server side application;
means for modifying the first request in a first communications protocol to create a communications protocol independent request at the server side application;
wherein said first request includes authentication data and cookies and wherein said communications protocol independent request is provided in a form interpretable by a server side application;
means for generating a response by processing the communications protocol independent request at the server side application, wherein the server side application modifies the request into a table having key and value pairs corresponding to query parameters in the first request;
means for sending the generated response in the first communications protocol to the client from the server side application;
wherein said first request includes user input encoded in a Uniform Resource Locator (URL); and
submitting said first request including the user input encoded in the URL in response to Common Gateway Interface (CGI) based source code included within the server side application.

### Claim 20 (depends on 19)

The system of claim 19, wherein the server side application comprises a plurality of components; including a seavlet component, a router component and a handler component, the system further comprising:
(i) means for receiving the request from the client at the servlet component, wherein the servlet component modifies the request to create the communications protocol independent request, and forwards the request to the router component, wherein the communications protocol independent request is created by removing commands specific to the communications protocol;
(ii) means for selecting the handler component at the router component and routing the forwarded request from the router component to the selected handler component; and
(iii) means for processing with the selected handler component the routed request and generating information, wherein the information is to be included in the response.

### Claim 21 (depends on 20)

The system of claim 20, wherein the generated information is based on data retrieved from a database by the selected handler component, the system further comprising:
means for receiving at the router component the generated information from the selected handler component;
means for sending from the router component the generated information to the servlet component; and
means for sending from the servlet component the generated response including the generated information to the client.

### Claim 22 (depends on 20)

The system of claim 20, wherein the router component and the selected handler component are modifiable by changing source code comprising the router component and the selected handler component and installing at least one executable file derived from the changed source code.

### Claim 23 (depends on 19)

The system of claim 19, wherein the table is communications protocol independent.

### Claim 24 (depends on 19)

The system of claim 19, wherein the communications protocol independent request does not include coding related to the communications protocol used to communicate the request from the client to the server side application.

### Claim 25 (depends on 19)

The system of claim 19, wherein the server side application includes a servlet, wherein the request is an HTTP request, and wherein the system performs:
subsequent to receiving the request and prior to generating the response,
(i) transforming at the servlet the HTTP request into a table, wherein the table has key and value pairs corresponding to query parameters in the HTTP request;
(ii) if a session already exists between the servlet and the client, using the session;
(iii) if the session does not exist between the servlet and the client, creating a new session;
(iv) retrieving a database connection from a connection pool, wherein the database connection is returned to the connection pool after the database connection has been used; and
(v) assigning the database connection to the request, wherein after the assignment the request is independent of HTTP communication protocols.

### Claim 26 (depends on 19)

The system of claim 19, wherein components of the server side application are modified to create a new server side application, wherein the modified components are independent of the communications protocol.

### Claim 27 (depends on 26)

The system of claim 26, wherein the new server side application performs:
receiving one request in the communications protocol from one client;
modifying the one request to create one communications protocol independent request;
generating one response by processing the one communications protocol independent request; and
sending the generated response in the communications protocol to the one client.

### Claim 28 (depends on 19)

The system of claim 19 wherein said request includes user input transmitted in a Universal Resource Locator (URL).

### Claim 29

A system for creating a server side application, the system comprising:
means for installing server side application components to be executed on a first computer of said system, wherein the server side application components are coded to perform default request handling operations, wherein the default request handling operations include a first communication protocol to manage communications with remote clients submitting requests to the server side application;
means for receiving code modifications to at least one server side application component to cause the at least one server side component to perform user specified server side application operations that are independent of the communications protocol; and
means for generating executable code from the installed server side application components including the code modifications;
means for receiving a first request at a servlet in the first communications protocol from a client as part of the default request handling operations;
means for modifying the first request in a first communications protocol at the servlet to create a communications protocol independent request as part of the default request handling operations, wherein the modifying the first request in a first communications protocol to create the communications protocol independent request is a part of the user specified server side application operations, wherein the user specified server side application operations include implementing a mapping of the request into key value pairs corresponding to query parameters in the first request in a first communications protocol;
wherein said first request includes authentication data and cookies and wherein said communications protocol independent request is provided in a form interpretable by a server side application;
means for sending the communications protocol independent request to a router as part of the default request handling operations;
means for routing the communications protocol independent request from the router to a selected handler as part of the user specified server side application operations;
means for generating a response at the selected handler as part of the user specified server side application operations;
means for sending the generated response in the first communications protocol to the client from the servlet as part of the default request handling operations;
wherein said first request includes user input encoded in a Uniform Resource Locator (URL); and
submitting said first request including the user input encoded in the URL in response to Common Gateway Interface (CGI) based source code included within the server side application.

### Claim 30 (depends on 29)

The system of claim 29, wherein the code modifications to the server side application components include:
modifications to a handler component to make a call to an application program; and
modifications to a router component to route requests to the created handler component.

### Claim 31 (depends on 30)

The system of claim 30, wherein the application program comprises a database program, and wherein the call comprises a database query.

### Claim 32 (depends on 30)

The system of claim 30, wherein the modifications to the handler component are made by a means for modifying source code of an existing handler component within the server side application components.

### Claim 33 (depends on 30)

The system of claim 30, wherein the modifications to the handler component are made by coding and adding a new handler component to the server side application components.

### Claim 34 (depends on 29)

The system of claim 29, wherein the communication protocol is HTTP, and the default request handling operations further include a means for mapping that maps a HTTP request into a form independent of HTTP syntax.

### Claim 35 (depends on 34)

The system of claim 34, wherein the means for mapping is to name value pairs corresponding to query parameters in the HTTP request, wherein the name value pairs are processed by the user specified server side application operations.

### Claim 36 (depends on 29)

The system of claim 29 wherein the means for modifying the first request in a first communications protocol at the servlet to create a communications protocol independent request as part of the default request handling operations comprises a table having key and value pairs corresponding to query parameters in the first request.

### Claim 37

An article of manufacture including a computer readable medium, wherein the article of manufacture is capable of causing operations, the operations comprising:
receiving a first request in a first communications protocol from a client;
modifying the first request in a first communications protocol to create a communications protocol independent request, wherein the server side application modifies the request into a table having key and value pairs corresponding to query parameters in the first request;
wherein said first request includes authentication data and cookies and wherein said communications protocol independent request is provided in a form interpretable by a server side application;
generating a response by processing the communications protocol independent request;
sending the generated response in the first communications protocol to the client;
wherein said first request includes user input encoded in a Uniform Resource Locator (URL); and
submitting said first request including the user input encoded in the URL in response to Common Gateway Interface (CGI) based source code included within the server side application.

### Claim 38 (depends on 37)

The article of manufacture of claim 37, wherein the server side application comprises a plurality of components, including a servlet component, a router component, and a handler component, the operations further comprising:
(i) receiving the request from the client at the servlet component, wherein the servlet component modifies the request to create the communications protocol independent request, and forwards the request to the router component, wherein the communications protocol independent request is created by removing commands specific to the communications protocol;
(ii) selecting the handler component at the router component and routing the forwarded request from the router component to the selected handler component; and
(iii) processing with the selected handler component the routed request and generating information, wherein the information is to be included in the response.

### Claim 39 (depends on 38)

The article of manufacture of claim 38, wherein the generated information is based on data retrieved from a database by the selected handler component, the operations further comprising:
receiving at the router component the generated information from the selected handler component;
sending from the router component the generated information to the servlet component; and
sending from the servlet component the generated response including the generated information to the client.

### Claim 40 (depends on 38)

The article of manufacture of claim 38, wherein the router component and the selected handler component are modifiable by changing source code comprising the router component and the selected handler component and installing at least one executable file derived from the changed source code.

### Claim 41 (depends on 37)

The article of manufacture of claim 37, wherein the table is communications protocol independent.

### Claim 42 (depends on 37)

The article of manufacture of claim 37, wherein the communications protocol independent request does not include coding related to the communications protocol used to communicate the request from the client to the server side application.

### Claim 43 (depends on 37)

The article of manufacture of claim 37, wherein the server side application includes a servlet, wherein the request is an HTTP request, and wherein the operations further comprises:
subsequent to receiving the request and prior to generating the response,
(i) transforming at the servlet the HTTP request into a table, wherein the table has key and value pairs corresponding to query parameters in the HTTP request;
(ii) if a session already exists between the servlet and the client, using the session;
(iii) if the session does not exist between the servlet and the client, creating a new session;
(iv) retrieving a database connection from a connection pool, wherein the database connection is returned to the connection pool after the database connection has been used; and
(v) assigning the database connection to the request, wherein after the assignment the request is independent of HTTP communication protocols.

### Claim 44 (depends on 37)

The article of manufacture of claim 37, wherein components of the server side application are modified to create a new server side application, wherein the modified components are independent of the communications protocol.

### Claim 45 (depends on 44)

The article of manufacture of claim 44, wherein the new server side application performs:
receiving one request in the communications protocol from one client;
modifying the one request to create one communications protocol independent request;
generating one response by processing the one communications protocol independent request; and
sending the generated response in the communications protocol to the one client.

### Claim 46 (depends on 37)

The article of manufacture of claim 37 wherein said request includes user input transmitted in a Universal Resource Locator (URL).

### Claim 47

An article of manufacture including a computer readable medium, wherein the article of manufacture is capable of causing operations, the operations comprising:
installing server side application components on a computational device, wherein the server side application components are coded to perform default request handling operations, wherein the default request handling operations include a first communication protocol to manage communications with remote clients submitting requests to the server side application;
receiving code modifications to at least one server side application component to cause the at least one server side component to perform user specified server side application operations that are independent of the communications protocol;
generating executable code from the installed server side application components including the code modifications;
receiving a first request at a servlet in the first communications protocol from a client as part of the default request handling operations;
modifying the first request in a first communications protocol at the servlet to create a communications protocol independent request as part of the default request handling operations, wherein the modifying the first request in a first communications protocol to create the communications protocol independent request is a part of the user specified server side application operations, and wherein the user specified server side application operations include implementing a mapping of the request into key value pairs corresponding to query parameters in the first request;
wherein said first request includes authentication data and cookies and wherein said communications protocol independent request is provided in a form interpretable by a server side application;
sending the communications protocol independent request to a router as part of the default request handling operations;
routing the communications protocol independent request from the router to a selected handler as part of the user specified server side application operations;
generating a response at the selected handler as part of the user specified server side application operations;
sending the generated response in the first communications protocol to the client from the servlet as part of the default request handling operations;
wherein said first request includes user input encoded in a Uniform Resource Locator (URL); and
submitting said first request including the user input encoded in the URL in response to Common Gateway Interface CGI based source code included within the server side application.

### Claim 48 (depends on 47)

The article of manufacture of claim 47, wherein the code modifications to the server side application components include:
modifications to a handler component to make a call to an application program; and
modifications to a router component to route requests to the created handler component.

### Claim 49 (depends on 48)

The article of manufacture of claim 48, wherein the application program comprises a database program, and wherein the call comprises a database query.

### Claim 50 (depends on 48)

The article of manufacture of claim 48, wherein the modifications to the handler component are made by modifying source code of an existing handler component within the server side application components.

### Claim 51 (depends on 48)

The article of manufacture of claim 48, wherein the modifications to the handler component are made by coding and adding a new handler component to the server side application components.

### Claim 52 (depends on 47)

The article of manufacture of claim 47, wherein the communication protocol is HTTP, and the default request handling operations further include a mapping that maps a HTTP request into a form independent of HTTP syntax.

### Claim 53 (depends on 52)

The article of manufacture of claim 52, wherein the mapping is to name value pairs corresponding to query parameters in the HTTP request, wherein the name value pairs are processed by the user specified server side application operations.

### Claim 54 (depends on 47)

The article of manufacture of claim 47 wherein modifying the first request in a first communications protocol at the servlet to create a communications protocol independent request as part of the default request handling operations comprises a table having key and value pairs corresponding to query parameters in the first request.
