Commit 4f9ebfb0 authored by Constantin Jucovschi's avatar Constantin Jucovschi
Browse files

updated .ignore

parent b2cb9430
......@@ -4,3 +4,5 @@ bin/
*.log
felix-cache
.metadata
*.versionsBackup
.settings
\ No newline at end of file
......@@ -3,10 +3,13 @@ package info.kwarc.sally4.servlet.impl;
import info.kwarc.sally4.core.CamelContextProvider;
import info.kwarc.sally4.servlet.SallyServlet;
import java.util.Dictionary;
import javax.servlet.ServletException;
import org.apache.camel.component.servlet.CamelHttpTransportServlet;
import org.apache.camel.component.servlet.ServletComponent;
import org.apache.felix.ipojo.annotations.Bind;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Instantiate;
import org.apache.felix.ipojo.annotations.Invalidate;
......@@ -24,14 +27,25 @@ import org.slf4j.LoggerFactory;
@Instantiate
public class ServletImpl implements SallyServlet {
@Requires
HttpService httpSevlet;
final static String portProperty = "org.osgi.service.http.port";
@Property(name="SallyHost", value="http://localhost")
String SallyHost;
String SallyURL;
@Bind
public void bindService(HttpService httpSevlet, Dictionary<String, Object> properties) {
SallyURL = SallyHost + ":" + properties.get(portProperty).toString();
log.info("SALLYURL="+SallyURL);
this.httpSevlet = httpSevlet;
}
@Requires
CamelContextProvider camelContextProvider;
@Property(name="SallyURL")
String SallyURL;
Logger log = LoggerFactory.getLogger(getClass());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment