org.apache.coyote.Response.addHeader()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中org.apache.coyote.Response.addHeader方法的一些代码示例,展示了Response.addHeader的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.addHeader方法的具体详情如下:
包路径:org.apache.coyote.Response
类名称:Response
方法名:addHeader

Response.addHeader介绍

暂无

代码示例

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

public void addHeader(String name, String value) {
  addHeader(name, value, null);
}

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

/*      */   public void addHeader(String name, String value)
/*      */   {
/* 1016 */     if (isCommitted()) {
/* 1017 */       return;
/*      */     }
/*      */ 
/* 1020 */     if (this.included) {
/* 1021 */       return;
/*      */     }
/* 1023 */     this.coyoteResponse.addHeader(name, value);
/*      */   }
/*      */

代码示例来源:origin: tomcat/catalina

/**
 * Add the specified header to the specified value.
 *
 * @param name Name of the header to set
 * @param value Value to be set
 */
public void addHeader(String name, String value) {
  if (isCommitted())
    return;
  // Ignore any call from an included servlet
  if (included)
    return;
  coyoteResponse.addHeader(name, value);
}

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Add the specified header to the specified value.
 *
 * @param name Name of the header to set
 * @param value Value to be set
 */
public void addHeader(String name, String value) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted())
    return;
  // Ignore any call from an included servlet
  if (included)
    return;
  coyoteResponse.addHeader(name, value);
}

代码示例来源:origin: jboss.web/jbossweb

/**
 * Add the specified header to the specified value.
 *
 * @param name Name of the header to set
 * @param value Value to be set
 */
public void addHeader(String name, String value) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted())
    return;
  // Ignore any call from an included servlet
  if (included)
    return;
  coyoteResponse.addHeader(name, value);
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Add the specified header to the specified value.
 *
 * @param name Name of the header to set
 * @param value Value to be set
 */
@Override
public void addHeader(String name, String value) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted())
    return;
  // Ignore any call from an included servlet
  if (included)
    return;
  coyoteResponse.addHeader(name, value);
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Add the specified header to the specified value.
 *
 * @param name Name of the header to set
 * @param value Value to be set
 */
@Override
public void addHeader(String name, String value) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted())
    return;
  // Ignore any call from an included servlet
  if (included)
    return;
  coyoteResponse.addHeader(name, value);
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Add the specified header to the specified value.
 *
 * @param name Name of the header to set
 * @param value Value to be set
 */
@Override
public void addHeader(String name, String value) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted())
    return;
  // Ignore any call from an included servlet
  if (included)
    return;
  coyoteResponse.addHeader(name, value);
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Add the specified header to the specified value.
 *
 * @param name Name of the header to set
 * @param value Value to be set
 */
@Override
public void addHeader(String name, String value) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted()) {
    return;
  }
  // Ignore any call from an included servlet
  if (included) {
    return;
  }
  coyoteResponse.addHeader(name, value);
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Add the specified header to the specified value.
 *
 * @param name Name of the header to set
 * @param value Value to be set
 */
@Override
public void addHeader(String name, String value) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted()) {
    return;
  }
  // Ignore any call from an included servlet
  if (included) {
    return;
  }
  char cc=name.charAt(0);
  if (cc=='C' || cc=='c') {
    if (checkSpecialHeader(name, value))
    return;
  }
  coyoteResponse.addHeader(name, value);
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Add the specified header to the specified value.
 *
 * @param name Name of the header to set
 * @param value Value to be set
 */
@Override
public void addHeader(String name, String value) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted()) {
    return;
  }
  // Ignore any call from an included servlet
  if (included) {
    return;
  }
  char cc=name.charAt(0);
  if (cc=='C' || cc=='c') {
    if (checkSpecialHeader(name, value))
    return;
  }
  coyoteResponse.addHeader(name, value);
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

private void addHeader(String name, String value, Charset charset) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted()) {
    return;
  }
  // Ignore any call from an included servlet
  if (included) {
    return;
  }
  char cc=name.charAt(0);
  if (cc=='C' || cc=='c') {
    if (checkSpecialHeader(name, value))
    return;
  }
  getCoyoteResponse().addHeader(name, value, charset);
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

private void addHeader(String name, String value, Charset charset) {
  if (name == null || name.length() == 0 || value == null) {
    return;
  }
  if (isCommitted()) {
    return;
  }
  // Ignore any call from an included servlet
  if (included) {
    return;
  }
  char cc=name.charAt(0);
  if (cc=='C' || cc=='c') {
    if (checkSpecialHeader(name, value))
    return;
  }
  getCoyoteResponse().addHeader(name, value, charset);
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

(outputFilters[Constants.CHUNKED_FILTER]);
  contentDelimitation = true;
  response.addHeader("Transfer-Encoding", "chunked");
} else {
  outputBuffer.addActiveFilter
response.addHeader("Date", date);

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

res.addHeader("Allow", header);
response.sendError(405, "TRACE method is not allowed");

代码示例来源:origin: org.jboss.web/jbossweb

res.addHeader("Allow", header);
res.setMessage("TRACE method is not allowed");
return false;

代码示例来源:origin: jboss.web/jbossweb

res.addHeader("Allow", header);
res.setMessage("TRACE method is not allowed");
return false;

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

/* 446 */       res.addHeader("Allow", header);
/* 447 */       res.setMessage("TRACE method is not allowed");
/* 448 */       return false;

代码示例来源:origin: tomcat/catalina

res.addHeader("Allow", header);
res.setMessage("TRACE method is not allowed");
return false;

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

res.addHeader("Allow", header);
res.setMessage("TRACE method is not allowed");
request.getContext().logAccess(request, response, 0, true);

相关文章