主权项 |
1. A method of serving a resource to a client via a computer network with an HTTP server system having a stateless microkernel architecture, the server system including two or more link resource servers comprising at least a first link resource and a second link resource server, the method comprising:
at a handler executed by a server of the HTTP server system, the server including a processor and memory; receiving an HTTP request from an HTTP client via the computer network to perform a resource operation on a resource, wherein the resource is a data object configured to embed at least two links comprising at least a first link and a second link; sending a request to perform the resource operation to one or a plurality of object servers associated with the links; in response, receiving the data object from the one or the plurality of object servers upon performance of the resource operation by the one or the plurality of object servers; sending the data object to each of the two or more link resource servers; at the first link resource server executed by the server, receiving the data object from the handler; determining by examining the data object, whether pre-determined information associated with the first link is present in the data object to perform a linking operation; based on the determining, when the data object includes the pre-determined information associated with the first link, performing the linking operation by returning the first link to the handler linking to related information provided by the first link resource server; further based on the determining, when the data object does not include the pre-determined information, not performing the linking operation and instead returning one or more stop condition links indicating that the pre-determined information is not included; and further based on the determining, when the data object includes the pre-determined information associated with the first link, at a linking engine executed by the server,
receiving the first link from the first link resource server; andembedding the first link in the data object; andsending a response to the HTTP client via the computer network, then at the second link resource server executed by the server,
receiving the data object from the handler;determining by the examining the data object whether pre-determined information associated with the second link is present in the data object, to perform a linking operation;based on the determining whether the pre-determined information associated with the second link is present in the data object,
when the data object includes the pre-determined information associated with the second link, performing the linking operation by returning the second link to the handler linking to related information provided by the second link resource server; andwhen the data object does not include the pre-determined information, not performing the linking operation and instead returning one or more stop condition links indicating that the pre-determined information is not included;wherein the response comprises the data object if none of the links are stop condition links, and wherein the response comprises a list of stop condition links if one or more of the links are stop condition links;wherein the predetermined information associated with each of the first and second links is information critical to a respective state transition effected on the data object by the first resource server and the second resource server, respectively. |