Как извлечь параметры из запроса curl в сервлете Джерси?
Я отправляю сообщение о перемотке к сервлету Джерси в форме
curl -i -X POST -d "debit_user_id=/custome/mobile_number:917827448775"http://localhost:8080/switch/apikongcall.do/transactions
Мне нужно получить debit_user_id в моем сервлете, код для моего метода Post
@POST
//@Path("/transactions")
//@Consumes(MediaType.APPLICATION_JSON)
public Response createTrackInJSON(@QueryParam("debit_user_id") String debit_user_id) {
//Log logger = null;
this.logger = LogFactory.getLog(getClass());
this.logger.info("Inside post method"+debit_user_id);
String response = debit_user_id;
//String response = "testParam is: " + recipient_id + "\n";
//String result = "Track saved : " + track;
return Response.status(200).entity(response).build();
Но мой debit_user_id становится нулевым. Это правильный способ сделать запрос curl успокоительным или способ, которым я извлекаю его в свой сервлет, неверен. Я новичок в Jax-rs. Заранее спасибо за помощь.