use a servlet instead of a restful resource

This commit is contained in:
Sebastian Sdorra
2011-08-07 16:35:51 +02:00
parent 8e4ff52207
commit b93230c8a1
3 changed files with 74 additions and 27 deletions

View File

@@ -52,6 +52,9 @@ public class HgServletModule extends ServletModule
/** Field description */
public static final String MAPPING_HG = "/hg/*";
/** Field description */
public static final String MAPPING_HOOK = "/hook/hg/*";
//~--- methods --------------------------------------------------------------
/**
@@ -62,6 +65,7 @@ public class HgServletModule extends ServletModule
protected void configureServlets()
{
bind(HgHookManager.class);
serve(MAPPING_HOOK).with(HgHookCallbackServlet.class);
// register hg cgi servlet
filter(MAPPING_HG).through(BasicAuthenticationFilter.class);