简体   繁体   English

是否有可能编写一个宁静的Web服务来接受HTTP请求对象

[英]is it possible to write a restful web service to accept http request object

我是使用jersey编写Web服务的新手,并且要求编写一个将接受http请求对象的Web服务,因此可以编写一个安静的Web服务来使用jersey接受http请求。

You can use the following to inject the request object into the jersey service endpoint 您可以使用以下命令将请求对象注入jersey服务端点

 @Context
    private HttpServletRequest request; 

Ref: LINK 参考: LINK

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM