I’m looking for a way to find the HTTP version of incoming request in spring webflux netty server
I cannot find any method in ServerWebExchange to get this information.
Spring servlet has some implementation to get it as given in springboot servlet.
Is it any possibility to get it in webflux implementation?
Related
I have set up a basic soap spring boot web service using the spring initializer.
I have set up a user endpoint and user service as well as a soap web service config. when sending the soap request in postman I get an empty response back
The sample you have posted seems to be inspired from the spring Spring Sample
There is every step explained.
I'd recommend SopaUI too as #earandap mentioned.
OData defines a batch request format for bundling multiple HTTP requests together into a single request. I'm working on a web service that must handle these batch requests.
After parsing the multipart request, I have the binary data for each individual request in the batch. Now I'd like to route each request through the Jersey dispatcher and collect the responses.
How do you get a reference to the Jersey dispatcher? Is there a better way to implement OData batch processing in Jersey?
I'm new to both Grizzly and Spring Security.
I'm trying to implement an oAuth 2 Resource and Authentication server and would like to use the spring implementation. Assuming that the server would receive a big number of requests I'd want the server to handle the request asynchronously. Is this possible?
Currently i'm following GitHub which is using grizzly-webserver, which if i'm not mistaken is synchronous.
Thanks
Is there any way to achieve multiple responses from a single request using Spring Boot ? If yes, please provide me a link.
HTTP does not work this way. An HTTP request has exactly one response. Spring Boot will not let you send more than one response, because that would be against the HTTP specification and no HTTP clients would be able to figure out what was going on.
There may be another way to accomplish your underlying goals, but whatever it is, it won't involve sending more than one HTTP response to a single HTTP request.
I coulnd't find any indication in Spring documentation that it support read of files in streaming mode in its object MultipartHttpServletRequest that handle multipart requests.
in similar way that is possible in Apache Commons framework.
is it supported in Spring at all?
Yes, have a look here. Your Spring API is far too old. Also, the Streaming mode has nothing to do with Spring. It is the ability of your servlet container or your server. Most server now support the streaming mode. Servlet will start performing the request as soon as it got the header from your request. You can continue to send out the stream of your request body (e.g. multipart data). However, the parsing can only be performed completely when the request is sent fully. This is the same as Apache Common FileUpload.
Alternatively, you can write a controller using Spring annotation. Spring will inject the ServletRequest if you add that as one of your method controller arugument. After that, you can use Apache FileUpload to do multipart parsing.
You can not do selective parsing since the request must be fully sent to server no matter what. It is the limit of Http. I asked the question a few day ago.