Setting up a Rest Controller

Ignacio Cañón Sánchez icanon at paradigmadigital.com
Tue Jun 14 05:26:33 EDT 2016


Hi, I need to setup a RestController in order to perform property
refreshing. I'm trying to define a bean in mvc-beans.xml file and it's
successfully created, but it seems I can not access to the endpoint.

this is my class
public class RefreshController {
    private static final Logger LOGGER =
LoggerFactory.getLogger(RefreshController.class);

    public RefreshController() {
        LOGGER.info("initializing");
    }

    @RequestMapping(value = "/refresh", method = RequestMethod.POST)
    public void refresh() {
        LOGGER.info("endpoint refresh called");
    }
}

And this is the definition at mvc-beans.xml
 <bean id="properties.refresher"
class="net.shibboleth.idp.spring.controller.RefreshController"/>

It's supposed to listen at https://localhost/idp/refresh, but a Curl to
this endpoint cause a 404 error.
I guess I'm missing something... could you help me please?

Thanks in advance
-- 
-- 

Ignacio Cañón Sánchez


[image: logo Paradigma.png]

------------------------------------------------------------

http://www.paradigmadigital.com

Vía de las Dos Castillas 33, Ática 4. 2ª Planta

28224 Pozuelo de Alarcón

Tel.: 91 352 59 42 // @paradigmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20160614/1c686fac/attachment.html>


More information about the dev mailing list