* Intercepts and enriches http access, mainly focusing on security and
* transactionality.
*/
+@Deprecated
public class NodeHttp implements KernelConstants {
private final static Log log = LogFactory.getLog(NodeHttp.class);
- public final static String DEFAULT_SERVICE = "HTTP";
-
private final BundleContext bc = FrameworkUtil.getBundle(getClass()).getBundleContext();
private ServiceTracker<Repository, Repository> repositories;
private String httpRealm = "Argeo";
private String webDavConfig = HttpUtils.WEBDAV_CONFIG;
- private final boolean cleanState;
+// private final boolean cleanState;
- public NodeHttp(boolean cleanState) {
- this.cleanState = cleanState;
+ public NodeHttp() {
+// this.cleanState = cleanState;
httpServiceTracker = new PrepareHttpStc();
// httpServiceTracker.open();
KernelUtils.asyncOpen(httpServiceTracker);
throw new CmsException("An http service is already configured");
repositories = new RepositoriesStc(bc, httpService);
// repositories.open();
- if (cleanState)
- KernelUtils.asyncOpen(repositories);
+
+ ///if (cleanState)
+ // FIXME properly publish servlets
+ //KernelUtils.asyncOpen(repositories);
+
log.info(httpPortsMsg(httpPort, httpsPort));
// httpAvailable = true;
// checkReadiness();