<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
           http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd">


  <bean id="fifaServiceFilter" class="org.myservice.endpoint.fifa.BasicAuthenticationFilter">
    <argument value="${ws.security.login.credentials}"/>
    <argument value="${ws.security.roles}"/>
    <argument value="${ws.security.permissions}"/>
  </bean>

  <bean id="fifaServiceEndpointRest" class="org.myservice.endpoint.fifa.RestFifaService">
    <argument>
      <reference interface="org.myservice.soa.fifa.FifaService"/>
    </argument>
  </bean>

  <jaxrs:server id="fifaService" address="https://0.0.0.0:30443/rest/soa/fifa">
    <jaxrs:serviceBeans>
      <ref component-id="fifaServiceEndpointRest"/>
    </jaxrs:serviceBeans>
    <jaxrs:providers>
      <ref component-id="fifaServiceFilter"/>
    </jaxrs:providers>
  </jaxrs:server>
</blueprint>
