public class RedirectResponse extends Response
Response implementation that performs an HTTP redirect.| Constructor and Description |
|---|
RedirectResponse(String newLocation)
Creates a new redirect response to the new location.
|
RedirectResponse(String newLocation,
boolean permanent)
Creates a new redirect response to the new location.
|
addHeader, createHeader, getContent, getContentType, getHeaders, getStatusCode, getStatusText, setContentType, setStatusCode, setStatusText, write, writepublic RedirectResponse(String newLocation)
newLocation - The new locationpublic RedirectResponse(String newLocation, boolean permanent)
newLocation - The new locationpermanent - Whether the redirect should be marked as permanentCopyright © 2026. All rights reserved.