Search in sources :

Example 1 with SecureTicketCodec

use of act.ws.SecureTicketCodec in project actframework by actframework.

the class App method loadBuiltInRoutes.

private void loadBuiltInRoutes() {
    router().addMapping(GET, "/asset/", new ResourceGetter("asset"), RouteSource.BUILD_IN);
    router().addMapping(GET, "/~/asset/", new ResourceGetter("asset/~act"), RouteSource.BUILD_IN);
    router().addMapping(GET, "/webjars/", new ResourceGetter("META-INF/resources/webjars"), RouteSource.BUILD_IN);
    router().addContext("act.", "/~");
    if (config.cliOverHttp()) {
        Router router = router(AppConfig.PORT_CLI_OVER_HTTP);
        router.addMapping(GET, "/asset/", new ResourceGetter("asset"), RouteSource.BUILD_IN);
    }
    SecureTicketCodec secureTicketCodec = config.secureTicketCodec();
    SecureTicketHandler secureTicketHandler = new SecureTicketHandler(secureTicketCodec);
    router().addMapping(GET, "/~/ticket", secureTicketHandler);
}
Also used : SecureTicketHandler(act.ws.SecureTicketHandler) SecureTicketCodec(act.ws.SecureTicketCodec) Router(act.route.Router) ResourceGetter(act.handler.builtin.ResourceGetter)

Aggregations

ResourceGetter (act.handler.builtin.ResourceGetter)1 Router (act.route.Router)1 SecureTicketCodec (act.ws.SecureTicketCodec)1 SecureTicketHandler (act.ws.SecureTicketHandler)1