Class ToolRenderService
- java.lang.Object
-
- org.sakaiproject.portal.render.cover.ToolRenderService
-
public class ToolRenderService extends Object
ToolRenderService is a static cover for theToolRenderService- Since:
- Sakai 2.2.4
- Version:
- $Rev$
-
-
Constructor Summary
Constructors Constructor Description ToolRenderService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ToolRenderServicegetInstance()Access the component instance: special cover only method.static booleanpreprocess(org.sakaiproject.portal.api.Portal portal, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context)Preprocess the given request.static RenderResultrender(org.sakaiproject.portal.api.Portal portal, org.sakaiproject.site.api.ToolConfiguration configuration, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context)
-
-
-
Method Detail
-
getInstance
public static ToolRenderService getInstance()
Access the component instance: special cover only method.- Returns:
- the component instance.
-
preprocess
public static boolean preprocess(org.sakaiproject.portal.api.Portal portal, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context) throws IOExceptionPreprocess the given request. Instructs the service to perform any preprocessing which may affect the state of the portlets (e.g. how they are rendered).- Parameters:
request- the current servlet requestresponse- the current servlet responsecontext- the application context- Returns:
- true, if and only if processing should continue.
- Throws:
IOException- if an error occurs during preprocessing
-
render
public static RenderResult render(org.sakaiproject.portal.api.Portal portal, org.sakaiproject.site.api.ToolConfiguration configuration, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context) throws IOException
- Parameters:
configuration- the tool which should be renderedrequest- the current servlet requestresponse- the current servlet responsecontext- the application context- Returns:
- a rendered(able) content
- Throws:
IOException- if an error occurs during processing.
-
-