public class SlingRedirectView
extends org.springframework.web.servlet.view.RedirectView
encode
the target URL: Sling is RESTful, i.e. requests should be stateless. Also, an appended session URL
is not part of the Sling URL spec. Lastly, sling incorrectly encodes external URLs, resulting in
"http(s)://" to be encoded as "_http(s)_".Constructor and Description |
---|
SlingRedirectView(String url,
boolean contextRelative,
boolean http10Compatible) |
Modifier and Type | Method and Description |
---|---|
protected void |
sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String targetUrl,
boolean http10Compatible) |
appendCurrentQueryParams, appendQueryProperties, createTargetUrl, getHosts, getHttp11StatusCode, isContextRequired, isEligibleProperty, isEligibleValue, isPropagateQueryProperties, isRedirectView, isRemoteHost, queryProperties, renderMergedOutputModel, replaceUriTemplateVariables, setContextRelative, setEncodingScheme, setExpandUriTemplateVariables, setExposeModelAttributes, setHosts, setHttp10Compatible, setPropagateQueryParams, setStatusCode, updateTargetUrl, urlEncode
afterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toString
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
public SlingRedirectView(String url, boolean contextRelative, boolean http10Compatible)
protected void sendRedirect(@Nonnull javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @Nonnull String targetUrl, boolean http10Compatible) throws IOException
sendRedirect
in class org.springframework.web.servlet.view.RedirectView
IOException
Copyright © 2024. All rights reserved.