class HttpServletAdapter extends HttpServerAdapter<HttpServletRequest, HttpServletResponse> {

  @Override public boolean parseClientIpAndPort(HttpServletRequest req, Span span) {
    if (parseClientIpFromXForwardedFor(req, span)) return true;
    return span.remoteIpAndPort(req.getRemoteAddr(), req.getRemotePort());
  }

}