private static Matcher matcher(final String line) throws HttpException {
  final Matcher matcher=PATTERN.matcher(line);
  if (!matcher.matches()) {
    throw new HttpException(HttpURLConnection.HTTP_BAD_REQUEST,String.format(Base.BAD_REQUEST_MSG,line));
  }
  return matcher;
}

private static Matcher matcher ( final String line ) throws HttpException { final Matcher matcher = PATTERN . matcher ( line ) ; if ( ! matcher . matches ( ) ) { throw new HttpException ( HttpURLConnection . HTTP_BAD_REQUEST , String . format ( Base . BAD_REQUEST_MSG , line ) ) ; } return matcher ; }
validate request - line according to pattern and return matcher .
