I have a Restful post method that answers to any client. when called, it runs a standard query and returns the result to the caller-- whoever that might be.
i'm looking to log the caller URL in this method. how to get the caller URL?
following is the method in a nutshell (error/edge conditions removed):
@POST
public static Response makeQuery() {
return Response.ok(query()).build(); // invoke query() and hand in the result
}