Method and system for invoking methods of objects over the internet
First Claim
1. A method in a computer system for processing of Hypertext Transfer Protocol (“
- HTTP”
) requests before processing by an HTTP server, the method comprising;
providing an HTTP template having command lines, each command line specifying a command to perform on an HTTP request;
for each command line in the HTTP template, performing the command of the command line on the HTTP request to generate a shadow HTTP request;
for each line in the shadow HTTP request, determining whether the line contains a substitute parameter or a function parameter;
when the line contains a substitute parameter, replacing the substitute parameter in the shadow HTTP request with a value defined for that substitute parameter; and
when the line contains a function parameter, invoking a function indicated by the function parameter so that the invoked function can modify the shadow HTTP request;
whereby a final HTTP request is generated for processing by the HTTP server.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system for invoking by a client computer system of a function of an object of an object class provided by a server computer system. The client sends a request to a server that comprises a Universal Resource Locator (“URL”) that identifies a script, an object class, and a function of the object class to invoke. In response to receiving the request, the server starts the script and transfers control to the script. The script instantiates an object of the object class identified in the URL of the received request and invokes the function identified in the URL of the received request. The invoked function performs the behavior of the function, creates a response to be sent to the client, and sends the response to the client. The response contains state information describing a state of the object after the behavior of the function is performed. When the client subsequently sends a request to invoke a function of the object class, the state information is included in the request so that the function can perform its behavior based on the state information.
-
Citations
43 Claims
-
1. A method in a computer system for processing of Hypertext Transfer Protocol (“
- HTTP”
) requests before processing by an HTTP server, the method comprising;providing an HTTP template having command lines, each command line specifying a command to perform on an HTTP request;
for each command line in the HTTP template, performing the command of the command line on the HTTP request to generate a shadow HTTP request;
for each line in the shadow HTTP request, determining whether the line contains a substitute parameter or a function parameter;
when the line contains a substitute parameter, replacing the substitute parameter in the shadow HTTP request with a value defined for that substitute parameter; and
when the line contains a function parameter, invoking a function indicated by the function parameter so that the invoked function can modify the shadow HTTP request;
whereby a final HTTP request is generated for processing by the HTTP server.- View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
loading and transferring control to the identified shim script; and
under control of the shim script, when an object of the identified object class does not exist, instantiating an object of the identified object class;
invoking the identified function of the instantiated object; and
under control of the invoked function, performing the behavior of the function;
creating a response to be sent to a sender of the HTTP request, the response containing state information describing a state of the object after the behavior of the function is performed; and
sending the response to the sender, whereby the sender can effect the invocation of the functions of a plurality of object classes.
- HTTP”
-
10. The method of claim 9 wherein the shim script is stored in a dynamic link library.
-
11. The method of claim 9 wherein the HTTP server and the shim script support an Internet Server Application Programming Interface (“
- ISAPI”
) protocol.
- ISAPI”
-
12. The method of claim 9 wherein upon receiving a subsequent request from the sender to invoke a function of an object of the identified object class, the shim script passes to the invoked function of the state information from the received subsequent request.
-
13. A method in a computer system for modifying messages, the messages being transferred between a client program and a server program, the method comprising:
-
defining a template having command lines, each command line specifying a command to perform on a message;
prior to completing transfer of the message to a destination one of the client and server programs, performing the command of each command line of the template on the message to generate a shadow message; and
for each line in the shadow message, determining whether the line contains a parameter; and
when the line contains a parameter, performing a behavior associated with the parameter;
whereby a modified message is produced for final transfer to the destination one of the client and server programs. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29)
loading and transferring control to the identified shim script; and
under control of the shim script, when an object of the identified object class does not exists, instantiating an object of the identified object class;
invoking the identified function of the instantiated object; and
under control of the invoked function, performing the behavior of the function;
creating a response to be sent to the client program, the response containing state information describing a state of the object after the behavior of the function is performed; and
sending the response to the client program, whereby the client program can effect the invocation of functions of a plurality of object classes.
-
-
27. The method of claim 26 wherein the shim script is stored in a dynamic link library.
-
28. The method of claim 26 wherein the server program and the shim script support an Internet Server Application Programming Interface (“
- ISAPI”
) protocol.
- ISAPI”
-
29. The method of claim 26 wherein upon receiving a subsequent request from the client program to invoke a function of an object of the identified object class, the shim script passes to the invoked function the state information from the received subsequent request.
-
30. A method in a computer system for pre-processing a Hypertext Transfer Protocol (“
- HTTP”
) request before submitting to an HTTP server, the method comprising;providing a template defining commands to perform on the HTTP request;
prior to submitting the HTTP request to the HTTP server, for each command defined in the template, performing the command on the HTTP request to generate a modified HTTP request; and
submitting the modified HTTP request to the HTTP server for processing;
whereby the HTTP request is modified before final submission to the HTTP server.
- HTTP”
-
31. A computer-readable medium containing instructions for causing a computer system to modify messages being transferred between a client and a server before completing transfer to a destination one of the client and server, by:
-
defining a template having command lines, each command line specifying a command to perform on a message;
prior to completing transfer of the message to the destination one of the client and server, performing the command of each command line of the template on the message to generate a shadow message;
for each line in the shadow message, determining whether the line contains a parameter; and
when the line contains a parameter, performing a behavior associated with the parameter to generate a final message; and
processing the final message by the destination one of the client and server. - View Dependent Claims (32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43)
-
Specification