I am using REST API with spring.is it possible that request arrives from UI/CURL to following API with request parameter null?
@GET
@Path(/abc)
@Produces({ "application/xml", "application/json" })
Public Users getUsers(@Context HttpServletRequest request)
{
someOtherClassMethod(request);
}
should I put null check for request here or request would always be not null if its arrived here.