Class DispatcherWebscript
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- com.gradecak.alfresco.mvc.webscript.DispatcherWebscript
-
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>,org.springframework.extensions.webscripts.WebScript,org.springframework.web.context.ServletContextAware
public class DispatcherWebscript extends org.springframework.extensions.webscripts.AbstractWebScript implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.web.context.ServletContextAware, org.springframework.context.ApplicationContextAware
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDispatcherWebscript.DelegatingServletConfigInternal implementation of theServletConfiginterface, to be passed to the servlet adapter.static classDispatcherWebscript.ServletConfigOptionsclassDispatcherWebscript.WebscriptRequestWrapper
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.web.servlet.DispatcherServlets
-
Constructor Summary
Constructors Constructor Description DispatcherWebscript()DispatcherWebscript(String servletName)DispatcherWebscript(String servletName, boolean inheritGlobalProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddServletConfigOptions(DispatcherWebscript.ServletConfigOptions[] detectServletConfig)protected voidconfigureDispatcherServlet(org.springframework.web.servlet.DispatcherServlet dispatcherServlet)voidexecute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)org.springframework.context.ApplicationContextgetApplicationContext()Class<?>getContextClass()StringgetContextConfigLocation()org.springframework.web.servlet.DispatcherServletgetDispatcherServlet()DispatcherWebscript.ServletConfigOptions[]getServletConfigOptions()javax.servlet.ServletContextgetServletContext()voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetContextClass(Class<?> contextClass)voidsetContextConfigLocation(String contextConfigLocation)voidsetServletContext(javax.servlet.ServletContext servletContext)-
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
-
-
-
Method Detail
-
execute
public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException- Specified by:
executein interfaceorg.springframework.extensions.webscripts.WebScript- Throws:
IOException
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
configureDispatcherServlet
protected void configureDispatcherServlet(org.springframework.web.servlet.DispatcherServlet dispatcherServlet)
-
getDispatcherServlet
public org.springframework.web.servlet.DispatcherServlet getDispatcherServlet()
-
getContextConfigLocation
public String getContextConfigLocation()
-
setContextConfigLocation
public void setContextConfigLocation(String contextConfigLocation)
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getServletContext
public javax.servlet.ServletContext getServletContext()
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- Specified by:
setServletContextin interfaceorg.springframework.web.context.ServletContextAware
-
setContextClass
public void setContextClass(Class<?> contextClass)
-
getContextClass
public Class<?> getContextClass()
-
addServletConfigOptions
public void addServletConfigOptions(DispatcherWebscript.ServletConfigOptions[] detectServletConfig)
-
getServletConfigOptions
public DispatcherWebscript.ServletConfigOptions[] getServletConfigOptions()
-
-