org.jboss.osgi.http
Class HttpServiceCapability

java.lang.Object
  extended by org.jboss.osgi.spi.capability.Capability
      extended by org.jboss.osgi.http.HttpServiceCapability

public class HttpServiceCapability
extends org.jboss.osgi.spi.capability.Capability

Adds the HttpService capability to the OSGiRuntime under test. It is ignored if the HttpService is already registered. Installed bundles: jboss-osgi-http.jar Default properties set by this capability

PropertyValue
org.osgi.service.http.port8090

Since:
05-May-2009
Author:
thomas.diesler@jboss.com

Field Summary
static int DEFAULT_HTTP_SERVICE_PORT
          The default HttpService port: 8090
 
Constructor Summary
HttpServiceCapability()
           
 
Method Summary
static String getHttpResponse(String host, int port, String reqPath, int timeout)
           
 
Methods inherited from class org.jboss.osgi.spi.capability.Capability
addBundle, addDependency, addSystemProperty, getBundles, getDependencies, getFilter, getInstalledBundles, getServiceName, getSystemProperties, install, setFilter, start, stop, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HTTP_SERVICE_PORT

public static final int DEFAULT_HTTP_SERVICE_PORT
The default HttpService port: 8090

See Also:
Constant Field Values
Constructor Detail

HttpServiceCapability

public HttpServiceCapability()
Method Detail

getHttpResponse

public static String getHttpResponse(String host,
                                     int port,
                                     String reqPath,
                                     int timeout)
                              throws IOException
Throws:
IOException


Copyright © 2010. All Rights Reserved.