In-depth analysis of Spring Web source code (15) - processor mapping, processor adapter and processor implementation - processor implementation architecture - HTTP request processor

4.2.2.3.3 HTTP Request Processor

 

An HTTP request handler is a handler used to implement remote calls based on HTTP requests. In the flow-based analysis in the previous chapter, we have performed detailed analysis and code comments of typical HTTP request handlers. In fact, in addition to the implementation of the HTTP invocation service exporter (HttpInvokerServiceExporter) , there are more implementations of remote invocation based on HTTP requests. As shown in the following class diagram,

 

 

Chart 436

 

As shown in the figure above, in addition to the HTTP call service exporter, there are also two remote call implementation classes, they are the Hessian service exporter and the Burlap service exporter. Their implementation process is very similar to that of the HTTP call service exporter. , the difference is that they do not pass the serialized data of the remote call object and the result of the remote call object on the HTTP protocol, but use their dedicated data format transmitted on the HTTP protocol to implement the remote call.

 

Hessian implements remote calls by transmitting binary data over the HTTP protocol. Burlap implements remote calls by transmitting XML data over the HTTP protocol . We do not talk about the analysis of their own implementations in this book.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325386501&siteId=291194637