test_class.file: common/src/test/java/org/apache/cxf/dosgi/common/httpservice/HttpServiceManagerTest.java
test_class.identifier: HttpServiceManagerTest
test_case.body: @Test
      public void testGetAbsoluteAddress() {
          HttpServiceManager manager = new HttpServiceManager();
          manager.initFromConfig(null);
  
          String address1 = manager.getAbsoluteAddress(null, "/myservice");
          assertEquals("http://localhost:8181/cxf/myservice", address1);
  
          String address2 = manager.getAbsoluteAddress("/mycontext", "/myservice");
          assertEquals("http://localhost:8181/mycontext/myservice", address2);
      }
test_case.class_method_signature: HttpServiceManagerTest.testGetAbsoluteAddress()
test_case.full_signature: @Test public void testGetAbsoluteAddress()
test_case.identifier: testGetAbsoluteAddress
test_case.invocations: initFromConfig getAbsoluteAddress assertEquals getAbsoluteAddress assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAbsoluteAddress()
focal_class.declarator: KEY_HTTP_BASE = "httpBase"
focal_class.modifier: public static final
focal_class.original_string: public static final String KEY_HTTP_BASE = "httpBase";
focal_class.type: String
focal_class.var_name: KEY_HTTP_BASE
focal_class.declarator: KEY_CXF_SERVLET_ALIAS = "cxfServletAlias"
focal_class.modifier: public static final
focal_class.original_string: public static final String KEY_CXF_SERVLET_ALIAS = "cxfServletAlias";
focal_class.type: String
focal_class.var_name: KEY_CXF_SERVLET_ALIAS
focal_class.declarator: DEFAULT_CXF_SERVLET_ALIAS = "/cxf"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_CXF_SERVLET_ALIAS = "/cxf";
focal_class.type: String
focal_class.var_name: DEFAULT_CXF_SERVLET_ALIAS
focal_class.declarator: LOG = LoggerFactory.getLogger(HttpServiceManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(HttpServiceManager.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: exportedAliases = Collections.synchronizedMap(new HashMap<Long, String>())
focal_class.modifier: private
focal_class.original_string: private Map<Long, String> exportedAliases = Collections.synchronizedMap(new HashMap<Long, String>());
focal_class.type: Map<Long, String>
focal_class.var_name: exportedAliases
focal_class.declarator: httpBase
focal_class.modifier: private
focal_class.original_string: private String httpBase;
focal_class.type: String
focal_class.var_name: httpBase
focal_class.declarator: cxfServletAlias
focal_class.modifier: private
focal_class.original_string: private String cxfServletAlias;
focal_class.type: String
focal_class.var_name: cxfServletAlias
focal_class.declarator: httpService
focal_class.modifier: private
focal_class.original_string: private HttpService httpService;
focal_class.type: HttpService
focal_class.var_name: httpService
focal_class.declarator: context
focal_class.modifier: private
focal_class.original_string: private BundleContext context;
focal_class.type: BundleContext
focal_class.var_name: context
focal_class.file: common/src/main/java/org/apache/cxf/dosgi/common/httpservice/HttpServiceManager.java
focal_class.identifier: HttpServiceManager
focal_class.class_method_signature: HttpServiceManager.activate(ComponentContext compContext)
focal_class.full_signature: @Activate public void activate(ComponentContext compContext)
focal_class.identifier: activate
focal_class.modifiers: @Activate public
focal_class.parameters: (ComponentContext compContext)
focal_class.return: void
focal_class.signature: void activate(ComponentContext compContext)
focal_class.class_method_signature: HttpServiceManager.initFromConfig(Dictionary<String, Object> config)
focal_class.full_signature: public void initFromConfig(Dictionary<String, Object> config)
focal_class.identifier: initFromConfig
focal_class.modifiers: public
focal_class.parameters: (Dictionary<String, Object> config)
focal_class.return: void
focal_class.signature: void initFromConfig(Dictionary<String, Object> config)
focal_class.class_method_signature: HttpServiceManager.getWithDefault(Object value, String defaultValue)
focal_class.full_signature: private String getWithDefault(Object value, String defaultValue)
focal_class.identifier: getWithDefault
focal_class.modifiers: private
focal_class.parameters: (Object value, String defaultValue)
focal_class.return: String
focal_class.signature: String getWithDefault(Object value, String defaultValue)
focal_class.class_method_signature: HttpServiceManager.registerServlet(Bus bus, String contextRoot, BundleContext callingContext, Long sid)
focal_class.full_signature: public Bus registerServlet(Bus bus, String contextRoot, BundleContext callingContext, Long sid)
focal_class.identifier: registerServlet
focal_class.modifiers: public
focal_class.parameters: (Bus bus, String contextRoot, BundleContext callingContext, Long sid)
focal_class.return: Bus
focal_class.signature: Bus registerServlet(Bus bus, String contextRoot, BundleContext callingContext, Long sid)
focal_class.class_method_signature: HttpServiceManager.registerUnexportHook(Long sid, String alias)
focal_class.full_signature: private void registerUnexportHook(Long sid, String alias)
focal_class.identifier: registerUnexportHook
focal_class.modifiers: private
focal_class.parameters: (Long sid, String alias)
focal_class.return: void
focal_class.signature: void registerUnexportHook(Long sid, String alias)
focal_class.class_method_signature: HttpServiceManager.getDefaultAddress(Class<?> type)
focal_class.full_signature: public String getDefaultAddress(Class<?> type)
focal_class.identifier: getDefaultAddress
focal_class.modifiers: public
focal_class.parameters: (Class<?> type)
focal_class.return: String
focal_class.signature: String getDefaultAddress(Class<?> type)
focal_class.class_method_signature: HttpServiceManager.getAbsoluteAddress(String contextRoot, String endpointAddress)
focal_class.full_signature: public String getAbsoluteAddress(String contextRoot, String endpointAddress)
focal_class.identifier: getAbsoluteAddress
focal_class.modifiers: public
focal_class.parameters: (String contextRoot, String endpointAddress)
focal_class.return: String
focal_class.signature: String getAbsoluteAddress(String contextRoot, String endpointAddress)
focal_class.class_method_signature: HttpServiceManager.setContext(BundleContext context)
focal_class.full_signature: public void setContext(BundleContext context)
focal_class.identifier: setContext
focal_class.modifiers: public
focal_class.parameters: (BundleContext context)
focal_class.return: void
focal_class.signature: void setContext(BundleContext context)
focal_class.class_method_signature: HttpServiceManager.setHttpService(HttpService httpService)
focal_class.full_signature: @Reference public void setHttpService(HttpService httpService)
focal_class.identifier: setHttpService
focal_class.modifiers: @Reference public
focal_class.parameters: (HttpService httpService)
focal_class.return: void
focal_class.signature: void setHttpService(HttpService httpService)
focal_method.body: public String getAbsoluteAddress(String contextRoot, String endpointAddress) {
          if (endpointAddress.startsWith("http")) {
              return endpointAddress;
          }
          String effContextRoot = contextRoot == null ? cxfServletAlias : contextRoot;
          return this.httpBase + effContextRoot + endpointAddress;
      }
focal_method.class_method_signature: HttpServiceManager.getAbsoluteAddress(String contextRoot, String endpointAddress)
focal_method.full_signature: public String getAbsoluteAddress(String contextRoot, String endpointAddress)
focal_method.identifier: getAbsoluteAddress
focal_method.invocations: startsWith
focal_method.modifiers: public
focal_method.parameters: (String contextRoot, String endpointAddress)
focal_method.return: String
focal_method.signature: String getAbsoluteAddress(String contextRoot, String endpointAddress)