Package org.osgi.service.http

Examples of org.osgi.service.http.HttpContext


   * Creates a {@link SecureHttpContext} which handles the security for this
   * Servlet 
   * @return a {@link SecureHttpContext}
   */
  protected HttpContext createHttpContext() {
    HttpContext defaultHttpContext = httpService.createDefaultHttpContext();
    return new SecureHttpContext(defaultHttpContext, "openHAB.org");
  }
View Full Code Here


  protected HttpContext createHttpContext() {
    if (this.httpService == null) {
      logger.error("cannot create http context httpservice null");
      return null;
    } else {
      HttpContext defaultHttpContext = httpService.createDefaultHttpContext();
      return new SecureHttpContext(defaultHttpContext, "openHAB.org");
    }
  }
View Full Code Here

TOP

Related Classes of org.osgi.service.http.HttpContext

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.