Package com.liferay.httpservice.internal.servlet

Examples of com.liferay.httpservice.internal.servlet.BundleServletContext$FilterServiceRankingComparator


  @Override
  protected void verifyRegisterServiceAction(
      VerificationMode verificationMode)
    throws Exception {

    BundleServletContext bundleServletContext = Mockito.verify(
      this.bundleServletContext, verificationMode);

    bundleServletContext.registerFilter(
      Mockito.anyString(), Mockito.anyString(), Mockito.eq(service),
      Mockito.anyMap(), Mockito.eq(httpContext));
  }
View Full Code Here


      Mockito.anyMap(), Mockito.eq(httpContext));
  }

  @Override
  protected void verifyUnRegisterServiceAction() throws Exception {
    BundleServletContext bundleServletContext = Mockito.verify(
      this.bundleServletContext);

    bundleServletContext.unregisterFilter(Mockito.anyString());
  }
View Full Code Here

  }

  public BundleServletContext getBundleServletContext(Bundle bundle)
    throws InvalidSyntaxException {

    BundleServletContext bundleServletContext = getWABBundleServletContext(
      bundle);

    if (bundleServletContext != null) {
      return bundleServletContext;
    }
View Full Code Here

    ServletContext servletContext = ServletContextPool.get(
      servletContextName);

    if (servletContext == null) {
      BundleServletContext bundleServletContext =
        new BundleServletContext(
          bundle, servletContextName,
          _webExtenderServlet.getServletContext());

      bundleServletContext.setServletContextName(servletContextName);

      ServletContextPool.put(servletContextName, bundleServletContext);

      servletContext = bundleServletContext;
    }
View Full Code Here

  @Override
  protected void verifyRegisterServiceAction(
      VerificationMode verificationMode)
    throws Exception {

    BundleServletContext bundleServletContext = Mockito.verify(
      this.bundleServletContext, verificationMode);

    bundleServletContext.registerServlet(
      Mockito.anyString(), Mockito.anyString(), Mockito.eq(service),
      Mockito.anyMap(), Mockito.eq(httpContext));
  }
View Full Code Here

      Mockito.anyMap(), Mockito.eq(httpContext));
  }

  @Override
  protected void verifyUnRegisterServiceAction() throws Exception {
    BundleServletContext bundleServletContext = Mockito.verify(
      this.bundleServletContext);

    bundleServletContext.unregisterServlet(Mockito.anyString());
  }
View Full Code Here

  @Override
  public HttpService getService(
    Bundle bundle, ServiceRegistration<HttpService> serviceRegistration) {

    try {
      BundleServletContext bundleServletContext =
        _httpSupport.getWABBundleServletContext(bundle);

      if (bundleServletContext != null) {
        return new HttpServiceWrapper(bundleServletContext);
      }
View Full Code Here

    }

    Bundle bundle = serviceReference.getBundle();

    try {
      BundleServletContext bundleServletContext =
        httpSupport.getBundleServletContext(bundle);

      if (action != ACTION_ADDING) {
        unregisterService(bundleServletContext, serviceReference);
      }

      if (action != ACTION_REMOVED) {
        String contextId = GetterUtil.getString(
          serviceReference.getProperty("contextId"));

        HttpContext httpContext = httpSupport.getHttpContext(contextId);

        if (httpContext == null) {
          httpContext = bundleServletContext.getHttpContext();
        }

        registerService(
          bundleServletContext, serviceReference, service,
          initParameters, httpContext);
View Full Code Here

      if (!(servletContext instanceof BundleServletContext)) {
        continue;
      }

      BundleServletContext bundleServletContext =
        (BundleServletContext)servletContext;

      Bundle bundle = bundleServletContext.getBundle();

      try {
        doStop(bundle, servletContextName);
      }
      catch (Exception e) {
View Full Code Here

      return;
    }

    try {
      BundleServletContext bundleServletContext =
        new BundleServletContext(
          bundle, servletContextName,
          _webExtenderServlet.getServletContext());

      bundleServletContext.open();
    }
    catch (Exception e) {
      EventUtil.sendEvent(bundle, EventUtil.FAILED, e, false);
    }
  }
View Full Code Here

TOP

Related Classes of com.liferay.httpservice.internal.servlet.BundleServletContext$FilterServiceRankingComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.