Obtenga el host del objeto de solicitud Java
request.getRequestURL().toString().replace(request.getRequestURI(), "")
Tender Tapir
request.getRequestURL().toString().replace(request.getRequestURI(), "")