public String getRequestURI();
/**
*
* Reconstructs the URL the client used to make the request.
* The returned URL contains a protocol, server name, port
* number, and server path, but it does not include query
* string parameters.
<!--重新构造的url用于发出请求,那么这个url则包含server name,port,path但不是不包含查询字符串参数 -->
*
* <p>If this request has been forwarded using
* {@link javax.servlet.RequestDispatcher#forward}, the server path in the
* reconstructed URL must reflect the path used to obtain the
* RequestDispatcher, and not the server path specified by the client.
*
<!-- **如果这个url被用来转发,那么这个重构的url地址是用RequestDispatcher来映射的,但是它并不是客户端指定的访问地址**-->
* <p>Because this method returns a <code>StringBuffer</code>,
* not a string, you can modify the URL easily, for example,
* to append query parameters.
*
* <p>This method is useful for creating redirect messages
* and for reporting errors.
*
<!-- 这个方法对于重定向非常有用-->
* @return a <code>StringBuffer</code> object containing
* the reconstructed URL
*
*/
<!-- 他返回一个重构的url-->
getRequestURL
public StringBuffer getRequestURL();
/**
*
* Returns the part of this request's URL that calls
* the servlet. This path starts with a "/"character
* and includes either the servlet nameor a path to
* the servlet, butdoesnot include any extra path
* information or a query string. Same asthe value of
* the CGI variable SCRIPT_NAME.
<!-- 他返回一个请求URL,是以 / 开头,包括server名字和path-但是不包括额外的路径或者信息,->
* <p>This method will return an empty string ("") ifthe
* servlet used to process this request was matched using
* the"/*" pattern.
<!-- 此方法返回一个空字符串,servlet 会以/* 的样式来处理-->
*
* @return a <code>String</code> containing
* thenameor path ofthe servlet being
* called, as specified inthe request URL,
* decoded, or an empty stringifthe servlet
* used to process the request is matched
* using the"/*" pattern.
*
*/
<!--这个请求URL将被servlet指定,解码,或者一个空字符串如果servlet匹配成功,就用 /* 的模式 -->