The first Jersey client example is to send a GET request to fetch all the contacts and print the response status code and response content. See Listing 11.
第一个Jersey客户端示例将发送GET请求获取所有联系人并打印响应状态码和响应内容,参见清单 11。
To return specific HTTP response status code and description.
若要返回特定HTTP响应状态代码和说明。
The status attribute indicates the HTTP RESPONSE STATUS code (for example, 200) sent back from the server.
status属性指出从服务器返回的HTTPRESPONSE STATUS码(例如,200)。
The status attribute indicates the HTTP RESPONSE STATUS code (for example, 200) sent back from the server.
status属性指出从服务器返回的HTTPRESPONSE STATUS码(例如,200)。
应用推荐