Search in sources :

Example 1 with DwrServlet

use of org.directwebremoting.servlet.DwrServlet in project libresonic by Libresonic.

the class Application method dwrServletRegistrationBean.

/**
     * Registers the DWR servlet.
     *
     * @return a registration bean.
     */
@Bean
public ServletRegistrationBean dwrServletRegistrationBean() {
    ServletRegistrationBean servlet = new ServletRegistrationBean(new DwrServlet(), "/dwr/*");
    servlet.addInitParameter("crossDomainSessionSecurity", "false");
    return servlet;
}
Also used : DwrServlet(org.directwebremoting.servlet.DwrServlet) ServletRegistrationBean(org.springframework.boot.web.servlet.ServletRegistrationBean) FilterRegistrationBean(org.springframework.boot.web.servlet.FilterRegistrationBean) ServletRegistrationBean(org.springframework.boot.web.servlet.ServletRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

DwrServlet (org.directwebremoting.servlet.DwrServlet)1 FilterRegistrationBean (org.springframework.boot.web.servlet.FilterRegistrationBean)1 ServletRegistrationBean (org.springframework.boot.web.servlet.ServletRegistrationBean)1 Bean (org.springframework.context.annotation.Bean)1