Skip to content
Snippets Groups Projects
Commit 7d9afaaa authored by cramakri's avatar cramakri
Browse files

LMS-1510 Extracted constants.

SVN: 15969
parent 71b5938a
No related branches found
No related tags found
No related merge requests found
...@@ -36,9 +36,11 @@ import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.IScreeningApiServ ...@@ -36,9 +36,11 @@ import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.IScreeningApiServ
*/ */
@Controller @Controller
@RequestMapping( @RequestMapping(
{ "/rmi-screening-api-v1", "/openbis/rmi-screening-api-v1" }) { ScreeningApiServiceServer.SERVICE_URL, "/openbis" + ScreeningApiServiceServer.SERVICE_URL })
public class ScreeningApiServiceServer extends HttpInvokerServiceExporter public class ScreeningApiServiceServer extends HttpInvokerServiceExporter
{ {
private static final String SERVICE_URL = "/rmi-screening-api-v1";
@Resource(name = ResourceNames.SCREENING_PLUGIN_SERVER) @Resource(name = ResourceNames.SCREENING_PLUGIN_SERVER)
private IScreeningApiServer server; private IScreeningApiServer server;
...@@ -53,7 +55,7 @@ public class ScreeningApiServiceServer extends HttpInvokerServiceExporter ...@@ -53,7 +55,7 @@ public class ScreeningApiServiceServer extends HttpInvokerServiceExporter
setInterceptors(new Object[] setInterceptors(new Object[]
{ new ServiceExceptionTranslator() }); { new ServiceExceptionTranslator() });
RpcServiceInterfaceVersionDTO ifaceVersion = RpcServiceInterfaceVersionDTO ifaceVersion =
new RpcServiceInterfaceVersionDTO("screening", "/rmi-screening-api-v1", 1, 0); new RpcServiceInterfaceVersionDTO("screening", SERVICE_URL, 1, 0);
nameServer.addSupportedInterfaceVersion(ifaceVersion); nameServer.addSupportedInterfaceVersion(ifaceVersion);
super.afterPropertiesSet(); super.afterPropertiesSet();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment