Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello Pankaj, Could you please provide link to download source code? I don’t see it on this page. Please help. Regards, Savani
- Savani Fu
Hi your post method is NOT very clear to me , could you explain to me how will I invoke Add method I see it is a Http post But how will I invoke this path CANNOT be in browser , do you I need to create a separate Client with Main method ?
- S COULIBALY
Hi Pankaj, Thanks for the great tutorial. I have one question. Am I right in thinking that, if there was an updatePesrson method, then the code would become non-thread safe. So in that case is it suggested to use ConcurrentHaspMap to store the data? What are your thoughts? Thank You.
- cs
Hi, I’m having problem with Maven, while creating maven project getting an error for pom.xml file like ( Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.5:runtime Cause: error in opening zip file pom.xml ) but in my system i have done proper installation for maven. I tried many ways to clear this error still no use please suggest me how can I clear this.
- Tejaswini K
I pasted war file in webapps directory and restarted server, but i get 404. Plz suggest pankaj sir
- Tejas Gowda
https://stackoverflow.com/questions/46863773/jersey-client-maintain-state-cookies-sends-get-post-set-cookiesget-2nd 0 down vote favorite In Jersey Client, I want to maintain Cookies and using Cookies want to send GET requests second time, to fetch JSON data. Why is Set-cookies used? Do I need to maintain State or cookies? import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.Entity; import javax.ws.rs.client.WebTarget; import javax.ws.rs.core.MultivaluedHashMap; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.core.Response; public class ExampleRestAPIClient { public static void main(String[] args) { Client client = ClientBuilder.newClient(); WebTarget baseTarget = client.target(“https://shoaibapi.erpnext.com/api/method/login”); MultivaluedMap formData = new MultivaluedHashMap(); formData.add(“usr”, “shoaibshaikh1516@gmail.com”); f ormData.add(“pwd”, “qweqwe”); Response response = baseTarget.request().post(Entity.form(formData)); System.out.println(“\n postResponse which is send\n”); System.out.println(response); if (response.getStatus() != 201) { System.out.println(“Error”); } String createdMessage = response.readEntity(String.class); System.out.println(createdMessage); System.out.println(“\n\n”); System.out.println(response.getCookies()); } }
- myjaysan myjaysan
Hi, I have some trouble understanding how client-server applications work with REST. Have I understood it correctly that this example is the server side code? How would the client side code look? Is it just code for making a GET request and parsing the response (doing whatever you want done with it)? I would be very thankful for a response, I am a bit confused by how I would develop a client-server application with REST and any clarifications would be really appreciated!
- Charlotte