本文整理了Java中org.apache.catalina.connector.Request.getResponseFacade
方法的一些代码示例,展示了Request.getResponseFacade
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getResponseFacade
方法的具体详情如下:
包路径:org.apache.catalina.connector.Request
类名称:Request
方法名:getResponseFacade
[英]Alias for AsyncContext inner class.
[中]AsyncContext内部类的别名。
代码示例来源:origin: jboss.web/jbossweb
public ServletResponse getResponse() {
if (servletResponse != null) {
return servletResponse;
} else {
return getResponseFacade();
}
}
代码示例来源:origin: org.jboss.web/jbossweb
public ServletResponse getResponse() {
if (servletResponse != null) {
return servletResponse;
} else {
return getResponseFacade();
}
}
代码示例来源:origin: jboss.web/jbossweb
public void logout(Request request)
throws ServletException {
unregister(request, request.getResponseFacade());
}
代码示例来源:origin: org.jboss.web/jbossweb
public boolean hasOriginalRequestAndResponse() {
return (servletRequest == getRequestFacade() && servletResponse == getResponseFacade());
}
代码示例来源:origin: org.jboss.web/jbossweb
public void logout(Request request)
throws ServletException {
unregister(request, request.getResponseFacade());
}
代码示例来源:origin: jboss.web/jbossweb
public boolean hasOriginalRequestAndResponse() {
return (servletRequest == getRequestFacade() && servletResponse == getResponseFacade());
}
代码示例来源:origin: jboss.web/jbossweb
public void login(Request request, String username, String password)
throws ServletException {
// Is there an SSO session against which we can try to reauthenticate?
String ssoId = (String) request.getNote(Constants.REQ_SSOID_NOTE);
if (ssoId != null) {
if (log.isDebugEnabled())
log.debug("SSO Id " + ssoId + " set; attempting " +
"reauthentication");
/* Try to reauthenticate using data cached by SSO. If this fails,
either the original SSO logon was of DIGEST or SSL (which
we can't reauthenticate ourselves because there is no
cached username and password), or the realm denied
the user's reauthentication for some reason.
In either case we have to prompt the user for a logon */
if (reauthenticateFromSSO(ssoId, request))
return;
}
Realm realm = context.getRealm();
Principal principal = realm.authenticate(username, password);
if (principal != null) {
register(request, request.getResponseFacade(), principal, Constants.LOGIN_METHOD,
username, password);
}
}
代码示例来源:origin: org.jboss.web/jbossweb
public void login(Request request, String username, String password)
throws ServletException {
// Is there an SSO session against which we can try to reauthenticate?
String ssoId = (String) request.getNote(Constants.REQ_SSOID_NOTE);
if (ssoId != null) {
if (CatalinaLogger.AUTH_LOGGER.isDebugEnabled())
CatalinaLogger.AUTH_LOGGER.debug("SSO Id " + ssoId + " set; attempting " +
"reauthentication");
/* Try to reauthenticate using data cached by SSO. If this fails,
either the original SSO logon was of DIGEST or SSL (which
we can't reauthenticate ourselves because there is no
cached username and password), or the realm denied
the user's reauthentication for some reason.
In either case we have to prompt the user for a logon */
if (reauthenticateFromSSO(ssoId, request))
return;
}
Realm realm = context.getRealm();
Principal principal = realm.authenticate(username, password);
if (principal != null) {
register(request, request.getResponseFacade(), principal, Constants.LOGIN_METHOD,
username, password);
}
}
内容来源于网络,如有侵权,请联系作者删除!