About Question enthuware.ocejws.v6.2.189 :
Posted: Sun Apr 13, 2014 4:55 am
The question says
Why it should find a matching method whose media type (by default) is */* ?
does this mean */* is also a default media type of HTTP request even if not explicitly mentioned in HTTP accept header ?
It does not mention */* in the accept header of HTTP requestThe HTTP request from the client has an Accept header of "image/jpeg;q=0.9,image/gif;q=0.8,application/xml"
Why it should find a matching method whose media type (by default) is */* ?
does this mean */* is also a default media type of HTTP request even if not explicitly mentioned in HTTP accept header ?
Code: Select all
@GET
public String getText(@QueryParam("me") double meters, @QueryParam("km") double kmPerHour)
{ double seconds = convert(kmPerHour, meters); return "" + seconds; }