public class SlingServletView extends Object implements org.springframework.web.servlet.View
Servlet
representing a org.apache.sling.api.scripting.SlingScript
and invokes the script to render
the view.Constructor and Description |
---|
SlingServletView(String resourceType,
javax.servlet.Servlet servlet) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
void |
render(Map<String,?> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public SlingServletView(String resourceType, javax.servlet.Servlet servlet)
resourceType
- must not be null
.servlet
- must not be null
.public String getContentType()
getContentType
in interface org.springframework.web.servlet.View
public void render(Map<String,?> model, javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response) throws Exception
render
in interface org.springframework.web.servlet.View
model
- can be null
.request
- must not be null
.response
- must not be null
.Exception
Copyright © 2024. All rights reserved.