本文整理了Java中ro.pippo.core.Response.isCommitted
方法的一些代码示例,展示了Response.isCommitted
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.isCommitted
方法的具体详情如下:
包路径:ro.pippo.core.Response
类名称:Response
方法名:isCommitted
[英]Returns true if this response has already been committed.
[中]如果已提交此响应,则返回true。
代码示例来源:origin: pippo-java/pippo
private void checkCommitted() {
if (isCommitted()) {
throw new PippoRuntimeException("The response has already been committed");
}
}
代码示例来源:origin: pippo-java/pippo
if (routeContext.getResponse().isCommitted()) {
log.debug("The response has already been committed. Cannot use the exception handler.");
return;
代码示例来源:origin: pippo-java/pippo
if (!response.isCommitted()) {
if (response.getStatus() == 0) {
log.debug("Status code not set for {} '{}'", requestMethod, requestPath);
代码示例来源:origin: pippo-java/pippo
@Override
public void handle(RouteContext routeContext) {
String language = enableQueryParameter ? routeContext.getParameter(PippoConstants.REQUEST_PARAMETER_LANG).toString()
: null;
if (StringUtils.isNullOrEmpty(language)) {
language = languages.getLanguageOrDefault(routeContext);
}
Locale locale = languages.getLocaleOrDefault(language);
routeContext.setLocal(PippoConstants.REQUEST_PARAMETER_LANG, language);
routeContext.setLocal(PippoConstants.REQUEST_PARAMETER_LOCALE, locale);
if (setCookie) {
if (routeContext.getResponse().isCommitted()) {
log.debug("LANG cookie NOT set, Response already committed!");
} else {
languages.setLanguageCookie(language, routeContext);
}
}
routeContext.next();
}
代码示例来源:origin: pippo-java/pippo
processRouteInterceptors(routeContext);
int postInterceptStatus = routeContext.getResponse().getStatus();
if (routeContext.getResponse().isCommitted()) {
log.debug("Response committed by interceptor");
routeContext.next();
if (routeContext.getResponse().isCommitted()) {
log.debug("Response committed in {}", LangUtils.toString(controllerMethod));
} else {
代码示例来源:origin: com.gitblit.fathom/fathom-rest
@Override
public void handle(Context context) {
String language = enableQueryParameter ? context.getParameter(Parameter.LANG).toString() : null;
if (Strings.isNullOrEmpty(language)) {
language = languages.getLanguageOrDefault(context);
}
Locale locale = languages.getLocaleOrDefault(language);
context.setLocal(Parameter.LANG, language);
context.setLocal(Parameter.LOCALE, locale);
context.setLocal(Parameter.LANGUAGES, languages.getRegisteredLanguages());
if (setCookie) {
if (context.getResponse().isCommitted()) {
log.debug("LANG cookie NOT set, Response already committed!");
} else {
languages.setLanguageCookie(language, context);
}
}
context.next();
}
代码示例来源:origin: gitblit/fathom
@Override
public void handle(Context context) {
String language = enableQueryParameter ? context.getParameter(Parameter.LANG).toString() : null;
if (Strings.isNullOrEmpty(language)) {
language = languages.getLanguageOrDefault(context);
}
Locale locale = languages.getLocaleOrDefault(language);
context.setLocal(Parameter.LANG, language);
context.setLocal(Parameter.LOCALE, locale);
context.setLocal(Parameter.LANGUAGES, languages.getRegisteredLanguages());
if (setCookie) {
if (context.getResponse().isCommitted()) {
log.debug("LANG cookie NOT set, Response already committed!");
} else {
languages.setLanguageCookie(language, context);
}
}
context.next();
}
代码示例来源:origin: ro.pippo/pippo-controller
processRouteInterceptors(routeContext);
int postInterceptStatus = routeContext.getResponse().getStatus();
if (routeContext.getResponse().isCommitted()) {
log.debug("Response committed by interceptor");
routeContext.next();
if (routeContext.getResponse().isCommitted()) {
log.debug("Response committed in {}", LangUtils.toString(controllerMethod));
} else {
代码示例来源:origin: com.gitblit.fathom/fathom-rest
processRouteInterceptors(context);
int postInterceptStatus = context.getResponse().getStatus();
if (context.getResponse().isCommitted()) {
log.debug("Response committed by RouteInterceptor");
context.next();
if (context.getResponse().isCommitted()) {
log.debug("Response committed in {}", Util.toString(method));
} else {
代码示例来源:origin: gitblit/fathom
processRouteInterceptors(context);
int postInterceptStatus = context.getResponse().getStatus();
if (context.getResponse().isCommitted()) {
log.debug("Response committed by RouteInterceptor");
context.next();
if (context.getResponse().isCommitted()) {
log.debug("Response committed in {}", Util.toString(method));
} else {
内容来源于网络,如有侵权,请联系作者删除!