开发者

How to create a HttpServletRequest instance in Swing application

开发者 https://www.devze.com 2023-02-03 09:46 出处:网络
I have a desktop application made in swing, and I need to create HttpServletRequest Object to pass it to another application through Web-Service, so please suggest me something good to create r开发者_

I have a desktop application made in swing, and I need to create HttpServletRequest Object to pass it to another application through Web-Service, so please suggest me something good to create r开发者_StackOverflow社区equest object in simple class.


Spring has nice implementations of HttpServletRequest and HttpServletResponse called MockHttpServletRequest/Response. Javadoc link here. Although intended for testing, they work very well for cases where you need to pass internal servlet objects around.

The classes are in the org.springframework.test jar.

0

精彩评论

暂无评论...
验证码 换一张
取 消