how to get header value in rest api java