Protocol agnostic request response pattern
First Claim
1. A computer system for communicating over a protocol, comprising:
- a class factory that selects a protocol object creator that produces an object associated with a protocol for communicating over a network comprising;
a plurality of identifiers; and
at least one registered protocol object creator associated with at least one of the plurality of identifiers, the at least one registered protocol object creator creates at least one protocol object;
the at least one protocol object comprising;
a reading component adapted to read a first data from a resource, the first data having at least one of, a format specific to the protocol and one or more headers and/or footers specific to the protocol when it is read from the resource; and
a writing component adapted to write a second data to the resource, the second data having at least one of, a format specific to the protocol and one or more headers and/or footers specific to the protocol when it is written to the resource.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and method for facilitating communications over a protocol is provided. The system includes a class factory that holds identifiers associated with determining which, if any, registered protocol object creator should be employed to create a protocol object. The protocol object implements an abstract network protocol base class. The protocol object is employed to abstract details of communicating over a protocol and to provide a byte stream interface to communications occurring over the protocol, while removing protocol specific code from an application program. The method includes creating an instance of a protocol object from a source of registered protocol handlers based on a request to communicate over a protocol and using a base class API to communicate over the protocol through the protocol object.
62 Citations
22 Claims
-
1. A computer system for communicating over a protocol, comprising:
-
a class factory that selects a protocol object creator that produces an object associated with a protocol for communicating over a network comprising; a plurality of identifiers; and at least one registered protocol object creator associated with at least one of the plurality of identifiers, the at least one registered protocol object creator creates at least one protocol object; the at least one protocol object comprising; a reading component adapted to read a first data from a resource, the first data having at least one of, a format specific to the protocol and one or more headers and/or footers specific to the protocol when it is read from the resource; and a writing component adapted to write a second data to the resource, the second data having at least one of, a format specific to the protocol and one or more headers and/or footers specific to the protocol when it is written to the resource. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A computer system for communicating over a protocol, comprising:
-
a class factory that selects a protocol object creator that produces an object associated with a protocol comprising; a plurality of identifiers, where the identifiers are URIs; and at least one registered protocol object creator, the at least one registered protocol object creator adapted to create at least one protocol object; the at least one protocol object comprising; a reader adapted to read a first data from a resource, where the first data has formatting specific to the protocol when the first data is read from the resource, where the protocol is at least one of a Hypertext Transfer Protocol (HTTP), a File Transfer Protocol (FTP) and a Simple Mail Transport Protocol (SMTQ), where the resource is at least one of a service, an application and a content source, and where the resource is accessible over a network; and a writer adapted to write a second data to the resource, where the second data has formatting specific to the protocol when the second data is written to the resource. - View Dependent Claims (17, 18, 19, 20, 21, 22)
-
Specification