METHODS, SYSTEMS, AND COMPUTER PROGRAM PRODUCTS FOR PROCESSING A COMBINED COMMAND RESPONSE
Methods and systems are described for processing a combined command response. In one aspect, a first HTTP request identifying a first command and a second HTTP request identifying a second command are sent by a user agent node to a server node. A combined HTTP response is received. A determination is made that the combined HTTP response includes a first command response for the first command and a second command response for the second command. In another aspect, a first HTTP request identifying a first command and a second HTTP request identifying a second command are received by a server node from a user agent node. A first command response for the first command and a second command response for the second command are generated. The first command response and the second command response are sent to the user agent node in a combined HTTP response.
1 . A method for processing a combined command response, the method comprising:
sending, in a first HTTP request from a user agent node to a server node, first command information identifying a first command;
sending, in a second HTTP request to the server node, second command information identifying a second command;;
receiving, from the server node, a combined HTTP response; and
determining, in response to sending the first command information and the second command information, that the combined HTTP response includes a first command response to the first command and a second command response to the second command.
2 . The method of claim 1 wherein at least one of the first command information and the second command information is sent in response to at least one of a detected user input, execution of an instruction received in an HTTP response, and processing of a markup language element received in an HTTP response.
3 . The method of claim 1 further comprising sending, to the server node, combine-request information defined to indicate that at least one of the first command response and the second command response are includable in the combined HTTP response.
4 . The method of claim 3 wherein the combine-request information is based on at least one of a specified time, a duration of time, an attribute of the server node, an attribute of the user agent node, an attribute of an HTTP entity received from the server node, and an attribute of a command identified by command information.
5 . The method of claim 3 wherein the combine-request information identifies at least one of a MIME type and an HTTP method token
6 . The method of claim 1 further comprising:
sending, to the server node in a third HTTP request, third command information identifying a third command; and
receiving for the third HTTP request a third HTTP response including for the third command a third command response at least partially generated during processing of at least one of the first command and the second command by the server node.
7 . The method of claim 1 further includes receiving combine-response information indicating that at least one of the first command response and the second command response is included in the combined HTTP response.
8 . The method of claim 7 wherein the combine-response information identifies a MIME-type defining a combined content type for including a plurality of command responses including the first command response and the second command response.
9 . A method for processing a combined command response, the method comprising:
receiving, in a first HTTP request from a user agent node, first command information identifying a first command;
receiving, in a second HTTP request from the user agent node, second command information identifying a second command;
generating a first command response for the first command;
generating a second command response for the second command; and
sending a combined HTTP response including the first command response, in response to identifying the first command, and including the second command response, in response to identifying the second command.
10 . The method of claim 10 further comprising receiving combine-request information defined to indicate that at least one of the first command response and the second command response are includable in the combined HTTP response.
11 . The method of claim 10 where in the combine-request information identifies at least one of a MIME type and an HTTP method token.
12 . The method of claim 10 further comprising sending combine-response information to the user agent node indicating that at least one of the first command response and the second command response is included in the combined HTTP response.
13 . The method of claim 12 wherein the combine-response information identifies a MIME-type defining a combined content type for including a plurality of command responses including the first command response and the second command response.
14 . A system for processing a combined command response, the system comprising:
an execution environment including an instruction processing unit configured to process an instruction included in at least one of a request-out component, a response-in component, and a combined response component;
the request-out component configured for sending, in a first HTTP request from a user agent node to a server node, first command information identifying a first command;
the request-out component configured for sending, in a second HTTP request to the server node, second command information identifying a second command;
the response-in component configured for receiving, from the server node, a combined HTTP response; and
the combined response component configured for determining, in response to sending the first command information and the second command information, that the combined HTTP response includes a first command response to the first command and a second command response to the second command.
15 . A system for processing a combined command response, the system comprising:
an execution environment including an instruction processing unit configured to process an instruction included in at least one of a request-in component, a first response generator component, a second response generator component, and a response-out component;
the request-in component configured for receiving, in a first HTTP request from a user agent node, first command information identifying a first command;
the request-in component configured for receiving, in a second HTTP request from the user agent node, second command information identifying a second command; and
the first response generator component configured for generating a first command response for the first command;
the second response generator component configured for receiving, in a second HTTP request from the user agent node, second command information identifying a second command; and
the response-out component configured for generating a first command response for the first command.
16 . A computer readable medium embodying a computer program, executable by a machine, for processing a combined command response, the computer program comprising executable instructions for:
sending, in a first HTTP request from a user agent node to a server node, first command information identifying a first command;
sending, in a second HTTP request to the server node, second command information identifying a second command;
receiving, from the server node, a combined HTTP response; and
determining, in response to sending the first command information and the second command information, that the combined HTTP response includes a first command response to the first command and a second command response to the second command.
17 . A computer readable medium embodying a computer program, executable by a machine, for processing a combined command response, the computer program comprising executable instructions for:
receiving, in a first HTTP request from a user agent node, first command information identifying a first command;
receiving, in a second HTTP request from the user agent node, second command information identifying a second command;
generating a first command response for the first command;
generating a second command response for the second command; and
sending a combined HTTP response including the first command response, in response to identifying the first command, and including the second command response, in response to identifying the second command.