Just in case people are searching for answers:
I used the following to set these, please note that ORIGIN is a static string part of the HttpRequestHeader class :
authMsg.getRequestHeader().setContentLength(authMsg.getRequestBody().length());
authMsg.getRequestHeader().setHeader(HttpHeader.ACCEPT, "application/json, text/plain, */*");
authMsg.getRequestHeader().setHeader(HttpHeader.CONTENT_TYPE, "application/json");
authMsg.getRequestHeader().setHeader(HttpRequestHeader.ORIGIN, "<REPLACE ME>"); //replace string with IP or location of ORIGIN
authMsg.getRequestHeader().setHeader(HttpHeader.REFERER, "
<REPLACE ME> "); //replace string with IP or location of REFERER
Again, thank you so much for the help. I went over these templates before posting this question and didn't see it. I'm glad, however, that you could point me to one of them.