本文整理了Java中org.apache.catalina.connector.Response.getStatus
方法的一些代码示例,展示了Response.getStatus
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.getStatus
方法的具体详情如下:
包路径:org.apache.catalina.connector.Response
类名称:Response
方法名:getStatus
[英]Return the HTTP status code associated with this Response.
[中]返回与此响应关联的HTTP状态代码。
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
public int getStatus() {
return response.getStatus();
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
@Override
public int getStatus() {
return response.getStatus();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
public int getStatus() {
return response.getStatus();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public int getStatus() {
return response.getStatus();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
@Override
public int getStatus() {
return response.getStatus();
}
代码示例来源:origin: org.picketlink.distribution/picketlink-jbas7
private boolean isUnauthorized(Response response) {
return response.getStatus() == HttpServletResponse.SC_FORBIDDEN;
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
@Override
public void addElement(StringBuilder buf, Date date, Request request,
Response response, long time) {
if (response != null) {
buf.append(response.getStatus());
} else {
buf.append('-');
}
}
}
代码示例来源:origin: jboss.web/jbossweb
public void addElement(StringBuilder buf, Date date, Request request,
Response response, long time) {
if (response != null) {
buf.append(response.getStatus());
} else {
buf.append('-');
}
}
}
代码示例来源:origin: org.glassfish.main.web/web-core
@Override
public int getStatus() {
// Disallow operation if the object has gone out of scope
if (response == null) {
throw new IllegalStateException(rb.getString(LogFacade.NULL_RESPONSE_OBJECT));
}
return response.getStatus();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public void addElement(StringBuilder buf, Date date, Request request,
Response response, long time) {
if (response != null) {
buf.append(response.getStatus());
} else {
buf.append('-');
}
}
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public void addElement(StringBuilder buf, Date date, Request request,
Response response, long time) {
if (response != null) {
buf.append(response.getStatus());
} else {
buf.append('-');
}
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
@Override
public void addElement(StringBuilder buf, Date date, Request request,
Response response, long time) {
if (response != null) {
buf.append(response.getStatus());
} else {
buf.append('-');
}
}
}
代码示例来源:origin: org.jboss.web/jbossweb
public void addElement(StringBuilder buf, Date date, Request request,
Response response, long time) {
if (response != null) {
buf.append(response.getStatus());
} else {
buf.append('-');
}
}
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
@Override
public void addElement(StringBuilder buf, Date date, Request request,
Response response, long time) {
if (response != null) {
buf.append(response.getStatus());
} else {
buf.append('-');
}
}
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* Perform whatever actions are required to flush and close the input
* stream or reader, in a single operation.
*
* @exception IOException if an input/output error occurs
*/
public void finishRequest() throws IOException {
if (response.getStatus() == HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE) {
checkSwallowInput();
}
}
代码示例来源:origin: org.jboss.web/jbossweb
public int getStatus() {
if (response == null) {
throw MESSAGES.nullResponseFacade();
}
return response.getStatus();
}
代码示例来源:origin: jboss.web/jbossweb
public int getStatus() {
if (response == null) {
throw new IllegalStateException(
sm.getString("responseFacade.nullResponse"));
}
return response.getStatus();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* Perform whatever actions are required to flush and close the input
* stream or reader, in a single operation.
*
* @exception IOException if an input/output error occurs
*/
public void finishRequest() throws IOException {
if (response.getStatus() == HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE) {
checkSwallowInput();
}
}
代码示例来源:origin: com.springsource.insight/insight-collection-tcserver
String parseReasonPhrase(Response response) {
String msg = response.getMessage();
if (msg != null) {
return msg;
}
return statusReasons.getString("sc." + response.getStatus());
}
代码示例来源:origin: com.springsource.insight/insight-collection-tcserver
void fillInResponseDetails(OperationMap op, Response response) {
op.put("statusCode", response.getStatus())
.put("reasonPhrase", parseReasonPhrase(response))
.put("contentSize", (Long) ReflectionUtils.invokeMethod(responseSizeMethod, response));
fillInHeaders(op.createList("headers"), response.getCoyoteResponse().getMimeHeaders());
}
内容来源于网络,如有侵权,请联系作者删除!