本文整理了Java中org.apache.catalina.connector.Response.<init>
方法的一些代码示例,展示了Response.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.<init>
方法的具体详情如下:
包路径:org.apache.catalina.connector.Response
类名称:Response
方法名:<init>
暂无
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*
* @return a new Servlet response object
*/
public Response createResponse() {
if (protocolHandler instanceof AbstractAjpProtocol<?>) {
int packetSize = ((AbstractAjpProtocol<?>) protocolHandler).getPacketSize();
return new Response(packetSize - org.apache.coyote.ajp.Constants.SEND_HEAD_LEN);
} else {
return new Response();
}
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*
* @return a new Servlet response object
*/
public Response createResponse() {
if (protocolHandler instanceof AbstractAjpProtocol<?>) {
int packetSize = ((AbstractAjpProtocol<?>) protocolHandler).getPacketSize();
return new Response(packetSize - org.apache.coyote.ajp.Constants.SEND_HEAD_LEN);
} else {
return new Response();
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
public Response createResponse() {
Response response = new Response();
response.setConnector(this);
return (response);
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
public Response createResponse() {
Response response = new Response();
response.setConnector(this);
return (response);
}
代码示例来源:origin: codefollower/Tomcat-Research
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
public Response createResponse() {
Response response = new Response();
response.setConnector(this);
return (response);
}
代码示例来源:origin: jboss.web/jbossweb
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
public Response createResponse() {
Response response = new Response();
response.setConnector(this);
return (response);
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
public Response createResponse() {
Response response = new Response();
response.setConnector(this);
return (response);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
public Response createResponse() {
Response response = new Response();
response.setConnector(this);
return (response);
}
代码示例来源:origin: tomcat/catalina
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
public Response createResponse() {
Response response = new Response();
response.setConnector(this);
return (response);
}
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
public Response createResponse() {
Response response = new Response();
response.setConnector(this);
return (response);
}
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
@Override
public org.apache.catalina.Response createResponse() {
Response response = new Response();
response.setConnector(this);
return response;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Create (or allocate) and return a Response object suitable for
* receiving the contents of a Response from the responsible Container.
*/
public Response createResponse() {
Response response = new Response();
response.setConnector(this);
return (response);
}
代码示例来源:origin: org.glassfish.web/web-glue
@Override
public void onParsingError(com.sun.grizzly.tcp.Response response) {
Response res = new Response();
res.setCoyoteResponse(response);
WebConnector connector = webContainer.getConnectorMap().get(listener.getName());
if (connector != null) {
Request req = new Request();
req.setCoyoteRequest(response.getRequest());
req.setConnector(connector);
try {
accessLogValve.postInvoke(req, res);
} catch (IOException ex) {
_logger.log(Level.SEVERE, "pewebcontainer.accesslog.reconfigure", ex);
}
} else {
_logger.log(Level.SEVERE, "pewebcontainer.accesslog.reconfigure");
}
}
});
内容来源于网络,如有侵权,请联系作者删除!