本文整理了Java中org.apache.catalina.connector.Request.setContentType
方法的一些代码示例,展示了Request.setContentType
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setContentType
方法的具体详情如下:
包路径:org.apache.catalina.connector.Request
类名称:Request
方法名:setContentType
[英]Set the content type for this Request.
[中]设置此请求的内容类型。
代码示例来源:origin: org.glassfish.main.security/websecurity
public void setContentType(String type) {
httpRequest.setContentType(type);
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat
public void invoke(Request req, Response res) throws IOException, ServletException {
req.setContentType("text/xml");
RequestAdapter request = new RequestAdapter(req);
ResponseAdapter response = new ResponseAdapter(res);
代码示例来源:origin: org.jboss.web/jbossweb
request.setContentType(rules[i].getTypeValue());
代码示例来源:origin: jboss.web/jbossweb
request.setContentType(rules[i].getTypeValue());
代码示例来源:origin: codefollower/Tomcat-Research
request.setContentType(rule.getTypeValue());
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
request.setContentType(rule.getTypeValue());
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
request.setContentType(rule.getTypeValue());
内容来源于网络,如有侵权,请联系作者删除!