主权项 |
1. A computer-implemented method comprising:
receiving, by a protocol handler of a server computer, a request from a client computer for an application service, the request including a parameter defining a data field of a plurality of data fields for a conversion and a conversion identifier that specifies the conversion; performing, by a conversion handler associated with the protocol handler, a lookup of a converter of a plurality of converters in a conversion registry based on the conversion identifier, each data field of the plurality of data fields being associated with a different converter of the plurality of converters, the conversion registry storing data associated with the plurality of converters, the conversion registry being extensible for one or more new conversions associated with respective data fields, the conversion handler configured to look up one or more converters associated with the one or more new conversions in the conversion registry, each converter of the plurality of converters configured to convert a corresponding data field from one format to another format that is different for each converter; calling, by the conversion handler, the converter to perform the conversion of the data field defined by the parameter in the request, to generate a converted data field, the converter operably coupled to a conversion interface that is separate from the converter and that executes the conversion of the data field; updating, by the conversion handler, the request with the converted data field; and passing, by the conversion handler, the updated request to the protocol handler. |