@Override public void sendRedirect(String location) throws IOException { super.sendRedirect(location); }
@Override public void sendRedirect(String location) throws IOException { copyBodyToResponse(false); super.sendRedirect(location); }
@Override public void sendRedirect(String location) throws IOException { copyBodyToResponse(false); super.sendRedirect(location); }
@Override public void sendRedirect(final String location) throws IOException { stopBufferingForStatusCode(HttpServletResponse.SC_TEMPORARY_REDIRECT); super.sendRedirect(location); }
@Override public void sendRedirect(String location) throws IOException { resetBuffer(); super.sendRedirect(location); }
@Override public void sendRedirect(String location) throws IOException { assertNotCommitted(); super.sendRedirect(location); committed = true; }
/** * Makes sure {@link OnCommittedResponseWrapper#onResponseCommitted()} is invoked * before calling the superclass <code>sendRedirect()</code>. * @param location the redirect URL location */ @Override public final void sendRedirect(String location) throws IOException { doOnResponseCommitted(); super.sendRedirect(location); }
@Override public void sendRedirect(String location) throws IOException { UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(location); UriComponents uriComponents = builder.build(); // Absolute location if (uriComponents.getScheme() != null) { super.sendRedirect(location); return; } // Network-path reference if (location.startsWith("//")) { String scheme = this.request.getScheme(); super.sendRedirect(builder.scheme(scheme).toUriString()); return; } String path = uriComponents.getPath(); if (path != null) { // Relative to Servlet container root or to current request path = (path.startsWith(FOLDER_SEPARATOR) ? path : StringUtils.applyRelativePath(this.request.getRequestURI(), path)); } String result = UriComponentsBuilder .fromHttpRequest(new ServletServerHttpRequest(this.request)) .replacePath(path) .replaceQuery(uriComponents.getQuery()) .fragment(uriComponents.getFragment()) .build().normalize().toUriString(); super.sendRedirect(result); } }
@Override public void sendRedirect(String location) throws IOException { UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(location); UriComponents uriComponents = builder.build(); // Absolute location if (uriComponents.getScheme() != null) { super.sendRedirect(location); return; } // Network-path reference if (location.startsWith("//")) { String scheme = this.request.getScheme(); super.sendRedirect(builder.scheme(scheme).toUriString()); return; } String path = uriComponents.getPath(); if (path != null) { // Relative to Servlet container root or to current request path = (path.startsWith(FOLDER_SEPARATOR) ? path : StringUtils.applyRelativePath(this.request.getRequestURI(), path)); } String result = UriComponentsBuilder .fromHttpRequest(new ServletServerHttpRequest(this.request)) .replacePath(path) .replaceQuery(uriComponents.getQuery()) .fragment(uriComponents.getFragment()) .build().normalize().toUriString(); super.sendRedirect(result); } }
public void sendRedirect(String pLocation) throws IOException { // NOT cacheable status = SC_MOVED_TEMPORARILY; super.sendRedirect(pLocation); }
public void sendRedirect(String pLocation) throws IOException { // NOT cacheable status = SC_MOVED_TEMPORARILY; super.sendRedirect(pLocation); }
@Override public void sendRedirect(String location) throws IOException { ensureNotCommited(); super.sendRedirect(location); committed = true; }
@Override public void sendRedirect(String location) throws IOException { ensureNotCommited(); super.sendRedirect(location); committed = true; }
@Override public void sendRedirect(String location) throws IOException { super.sendRedirect(HttpUtil.sanitizeHeader(location)); }
@Override public void sendRedirect(String location) throws IOException { if (isCommitted()) { throw new IllegalStateException("Send redirect after commit"); } resetBuffer(true); setStatus(SC_FOUND); _metaData._location = location; _committed = true; super.sendRedirect(location); }
/** * Send the redirect. If the response is not ok, most of the logic is bypassed and the error is sent raw. * Also, the content is not cached. * * @param string the URL to redirect to * @throws IOException */ public void sendRedirect(String string) throws IOException { statusCode = HttpServletResponse.SC_MOVED_TEMPORARILY; super.sendRedirect(string); }
@Override public void sendRedirect(final String location) throws IOException { super.sendRedirect(location); }
/** * We override this so we can catch the response status. Only * responses with a status of 200 (<code>SC_OK</code>) will * be cached. */ public void sendRedirect(String location) throws IOException { this.status = SC_MOVED_TEMPORARILY; super.sendRedirect(location); }
public void sendRedirect(String url) throws IOException { url = rewriteURL(url); m_req.setAttribute(ATTR_REDIRECT, url); super.sendRedirect(url); }
@Override public void sendRedirect(String location) throws IOException { abortBufferingIfBadStatusCode(HttpServletResponse.SC_TEMPORARY_REDIRECT); super.sendRedirect(location); }