java - Spring MVC: What is an HttpEntity? -
this question has answer here:
- what http entity? 8 answers
i have read spring docs httpentity. accordingly, represents http response/request entity. arrived in conclusion same character in character stream. however, consists of header , body.
please elaborate httpentity or http response/request in general. links welcome.
the spring web model-view-controller (mvc) framework designed around dispatcherservlet dispatches requests handlers, configurable handler mappings, view resolution, locale, time zone , theme resolution support uploading files. default handler based on @controller , @requestmapping annotations, offering wide range of flexible handling methods. introduction of spring 3.0, @controller mechanism allows create restful web sites , applications, through @pathvariable annotation , other features.
the httpentity similar @requestbody , @responsebody. besides getting access request , response body, httpentity (and response-specific subclass responseentity) allows access request , response headers.
source : spring web mvc framework
Comments
Post a Comment