SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
tried creating the method variable and the uriString variable typecast to HttpMethod variable. but the statements seem to be erronous.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Prime wrote:Have you checked the API?
Depending on the method, you create an instance of an implementation of HttpMethod. For instance, for the "GET" method you create a GetMethod instance: new GetMethod(uriString). There are similar classes with matching constructors for the other 6 HTTP methods: POST, HEAD, OPTIONS, TRACE, PUT, DELETE.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Prime wrote:What's wrong with actually using the classes Ulf and I mentioned?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|