コード例 #1
0
ファイル: Response.java プロジェクト: duxingzhe311/tomcat
 /**
  * Does the response contain the given header. <br>
  * Warning: This method always returns <code>false</code> for Content-Type and Content-Length.
  *
  * @param name The name of the header of interest
  * @return {@code true} if the response contains the header.
  */
 public boolean containsHeader(String name) {
   return headers.getHeader(name) != null;
 }
コード例 #2
0
 public String getHeader(String name) {
   return headers.getHeader(name);
 }