本文整理了Java中org.eclipse.jetty.server.Response.sendRedirect
方法的一些代码示例,展示了Response.sendRedirect
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.sendRedirect
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Response
类名称:Response
方法名:sendRedirect
[英]Sends a response with one of the 300 series redirection codes.
[中]使用300系列重定向代码之一发送响应。
代码示例来源:origin: org.eclipse.jetty/jetty-security
base_response.sendRedirect(redirectCode, response.encodeRedirectURL(nuri));
return form_auth;
base_response.sendRedirect(redirectCode, response.encodeRedirectURL(URIUtil.addPaths(request.getContextPath(),_formErrorPage)));
base_response.sendRedirect(redirectCode, response.encodeRedirectURL(URIUtil.addPaths(request.getContextPath(),_formLoginPage)));
代码示例来源:origin: theonedev/onedev
@Override
public void sendRedirect(String location) throws IOException
{
sendRedirect(HttpServletResponse.SC_MOVED_TEMPORARILY, location);
}
代码示例来源:origin: Nextdoor/bender
@Override
public void sendRedirect(String location) throws IOException
{
sendRedirect(HttpServletResponse.SC_MOVED_TEMPORARILY, location);
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
@Override
public void sendRedirect(String location) throws IOException
{
sendRedirect(HttpServletResponse.SC_MOVED_TEMPORARILY, location);
}
代码示例来源:origin: jenkinsci/winstone
@Override
public void sendRedirect(String location) throws IOException
{
sendRedirect(HttpServletResponse.SC_MOVED_TEMPORARILY, location);
}
代码示例来源:origin: org.eclipse.jetty/jetty-security
response.sendRedirect(url);
代码示例来源:origin: org.fabric3/fabric3-jetty
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
if (!request.isSecure()) {
baseRequest.getResponse().sendRedirect("https://" + baseRequest.getServerName() + ":" + httpsPort + baseRequest.getPathInfo());
baseRequest.setHandled(true);
} else {
getHandler().handle(target, baseRequest, request, response);
}
}
}
代码示例来源:origin: org.apache.drill.exec/drill-java-exec
base_request.getHttpVersion().getVersion() < HttpVersion.HTTP_1_1.getVersion() ? 302 : 303;
try {
base_response.sendRedirect(redirectCode, res.encodeRedirectURL(newUri));
} catch (IOException e) {
logger.error("DrillSpnegoAuthenticator: Failed while using the redirect URL {} from client {}", newUri,
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.security
base_response.sendRedirect(redirectCode, response.encodeRedirectURL(nuri));
return form_auth;
base_response.sendRedirect(redirectCode, response.encodeRedirectURL(URIUtil.addPaths(request.getContextPath(),_formErrorPage)));
base_response.sendRedirect(redirectCode, response.encodeRedirectURL(URIUtil.addPaths(request.getContextPath(),_formLoginPage)));
代码示例来源:origin: Nextdoor/bender
Request base_request = HttpChannel.getCurrentHttpChannel().getRequest();
int redirectCode = (base_request.getHttpVersion().getVersion() < HttpVersion.HTTP_1_1.getVersion() ? HttpServletResponse.SC_MOVED_TEMPORARILY : HttpServletResponse.SC_SEE_OTHER);
base_response.sendRedirect(redirectCode, response.encodeRedirectURL(nuri));
return form_auth;
Request base_request = HttpChannel.getCurrentHttpChannel().getRequest();
int redirectCode = (base_request.getHttpVersion().getVersion() < HttpVersion.HTTP_1_1.getVersion() ? HttpServletResponse.SC_MOVED_TEMPORARILY : HttpServletResponse.SC_SEE_OTHER);
base_response.sendRedirect(redirectCode, response.encodeRedirectURL(URIUtil.addPaths(request.getContextPath(),_formErrorPage)));
Request base_request = HttpChannel.getCurrentHttpChannel().getRequest();
int redirectCode = (base_request.getHttpVersion().getVersion() < HttpVersion.HTTP_1_1.getVersion() ? HttpServletResponse.SC_MOVED_TEMPORARILY : HttpServletResponse.SC_SEE_OTHER);
base_response.sendRedirect(redirectCode, response.encodeRedirectURL(URIUtil.addPaths(request.getContextPath(),_formLoginPage)));
代码示例来源:origin: Nextdoor/bender
response.sendRedirect(url);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
response.sendRedirect(url);
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
response.sendRedirect(url);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
url += "?" + request.getQueryString();
response.setContentLength(0);
response.sendRedirect(url);
url += "?" + request.getQueryString();
response.setContentLength(0);
response.sendRedirect(url);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
url += "?" + request.getQueryString();
response.setContentLength(0);
response.sendRedirect(url);
url += "?" + request.getQueryString();
response.setContentLength(0);
response.sendRedirect(url);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
url += "?" + request.getQueryString();
response.setContentLength(0);
response.sendRedirect(url);
url += "?" + request.getQueryString();
response.setContentLength(0);
response.sendRedirect(url);
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.security
response.sendRedirect(url);
代码示例来源:origin: sonian/elasticsearch-jetty
url += "?" + request.getQueryString();
response.setContentLength(0);
response.sendRedirect(url);
} else
response.sendError(Response.SC_FORBIDDEN, "!Integral");
response.sendRedirect(url);
} else
response.sendError(Response.SC_FORBIDDEN, "!Confidential");
代码示例来源:origin: jenkinsci/winstone
response.sendRedirect(url);
代码示例来源:origin: org.eclipse.jetty/security
url += "?" + request.getQueryString();
response.setContentLength(0);
response.sendRedirect(url);
response.sendRedirect(url);
内容来源于网络,如有侵权,请联系作者删除!