I want to know if I can implement a RESTFul web service using HTTPS instead of HTTP I am using Jersey and Spring to implement RESTFUL web service. If yes then what code changes do I need to make? Following is the code snippet I have
@Component
@Path("/payment")
public class PaymentService {
@Autowired
TransactionBo transactionBo;
@GET
@Path("{year}/{format}")
public Response savePayment(@PathParam("year") int year,
@PathParam("format") String format,@PathParam("name") String name) {
String result = transactionBo.save(year,format,name);
return Response.status(200).entity(result).build();
}
}