101102103104105106107108109110111
jersey.setContextPath(e.getContext()); Credentials c = Credentials.join(e.getCredentials(), cfg .getCredentials()); if (!c.isEmpty()) { jersey.addFilter(new HTTPBasicAuth(c), e.getContext() + "-basic-auth", null); } return jersey; }