File tree 3 files changed +2
-84
lines changed
src/main/java/com/neva/felix/webconsole/plugins/search
3 files changed +2
-84
lines changed Original file line number Diff line number Diff line change 190
190
<version >4.0.0</version >
191
191
<scope >provided</scope >
192
192
</dependency >
193
- <dependency >
194
- <groupId >org.osgi</groupId >
195
- <artifactId >org.osgi.service.http.whiteboard</artifactId >
196
- <version >1.1.1</version >
197
- <scope >provided</scope >
198
- </dependency >
199
193
<dependency >
200
194
<groupId >org.apache.felix</groupId >
201
195
<artifactId >org.apache.felix.webconsole</artifactId >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
import com .neva .felix .webconsole .plugins .search .utils .TemplateRenderer ;
4
4
import org .osgi .framework .BundleContext ;
5
- import org .osgi .service .http .whiteboard .HttpWhiteboardConstants ;
6
5
7
6
import javax .servlet .http .HttpServlet ;
8
7
import java .util .Dictionary ;
@@ -23,18 +22,8 @@ public RestServlet(BundleContext bundleContext) {
23
22
24
23
public Dictionary <String , Object > createProps () {
25
24
Dictionary <String , Object > props = new Hashtable <>();
26
- //props.put("alias", getAlias());
27
-
28
- props .put (HttpWhiteboardConstants .HTTP_WHITEBOARD_SERVLET_PATTERN , "/search/" + getAliasName ());
29
- props .put (HttpWhiteboardConstants .HTTP_WHITEBOARD_CONTEXT_SELECT , "(osgi.http.whiteboard.context.name=org.apache.felix.webconsole)" ); // webManagerRoot
30
- props .put ("service.ranking" , Integer .MAX_VALUE );
31
-
25
+ props .put ("osgi.http.whiteboard.servlet.pattern" , "/search/" + getAliasName ());
26
+ props .put ("osgi.http.whiteboard.context.select" , "(osgi.http.whiteboard.context.name=org.apache.felix.webconsole)" );
32
27
return props ;
33
28
}
34
-
35
- public String getAlias () {
36
- return "/system/console/search-api/" + getAliasName ();
37
- //return SearchPaths.from(bundleContext).pluginAlias(getAliasName());
38
- }
39
-
40
29
}
You can’t perform that action at this time.
0 commit comments