You hit the nail on the head. Im majoring in MIS, will be a senior next year. A company had a design challenge at my school, my proposal won, and now I am working on an actual site that the company is going to use. Chance of a lifetime, so I dont want to miss it.
So I am developng a site where customers will register, then they can create a project. Each project will have devices added to it (temp, pressure, etc), and each device will have a web channel with data points. After the user registers and creates a project with a device (the channel automatically registers to the device) he can view it on a google map or generate different charts to see the data points over time.
Im using eclipse,
tomcat, and the richfaces library to develop
jsp pages. I was given a rough draft of an API that provides a url for whatever a user is looking at. For instance, if a user wants to see a list of all the devices they go to www.website.com/devices or to see a single device www.website.com/devices/{deviceID}
I was also provided what get, put, post and delete will do depending on the url. I have no previous experience with http client so Ive been learning all I can. All I am wanting to do is use post to create a new device on www.website.com/devices/{deviceID}
I knew the answer to my first question from my first post already (classes), but I was so focused on httpclient I didn't allow myself to see the bigger picture. I know I will be using putMethod put = new putMethod(), but I am having trouble getting past that part. I would like to use post to add a device and its attributes to the api, and then use get to see the response body. I am making slow pogress, so any tips would be greatly appreciated.
edit - Id say I do have beginner java experience, but liek I said I was so focused on httpclient I didnt see the bigger picture. I mean that is a fundamental element of java lol, I dont know how I let that get by