How can I get the request URL from a Java Filter?

if (request instanceof HttpServletRequest) { 
  
String url = ((HttpServletRequest)request).getRequestURL().toString();
  
String queryString = ((HttpServletRequest)request).getQueryString();
}

你可能感兴趣的:(servlet,filter,url)