All Downloads are FREE. Search and download functionalities are using the official Maven repository.

OSGI-INF.blueprint.config.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" 
  xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
  xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
  <!-- Allow the use of system properties -->
  <ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
  <cm:property-placeholder persistent-id="org.xipki.ocsp.server" update-strategy="reload">
    <cm:default-properties>
      <cm:property name="confFile" value="xipki/ocsp-config/ocsp-responder.xml"/>
    </cm:default-properties>
  </cm:property-placeholder>
  <reference id="securityFactory" interface="org.xipki.security.SecurityFactory"/>
  <reference id="ocspStoreFactoryRegister"
      interface="org.xipki.ocsp.api.OcspStoreFactoryRegister"/>
  <bean id="ocspServer" class="org.xipki.ocsp.server.impl.OcspServer" 
      init-method="init" destroy-method="shutdown">
    <property name="confFile" value="${confFile}"/>
    <property name="securityFactory" ref="securityFactory"/>
    <property name="ocspStoreFactoryRegister" ref="ocspStoreFactoryRegister"/>
  </bean>
  <!-- create the servlet and inject our own app factory -->
  <bean id="ocspServlet" class="org.xipki.ocsp.server.impl.HttpOcspServlet">
    <property name="server" ref="ocspServer"/>
  </bean>
  <!-- register it as a servlet service for the web extender -->
  <service ref="ocspServlet" interface="org.xipki.http.servlet.HttpServlet">
    <service-properties>
      <entry key="alias" value="/ocsp"/>
    </service-properties>
  </service>
  <!-- create the servlet and inject our own app factory -->
  <bean id="healthServlet" class="org.xipki.ocsp.server.impl.HealthCheckServlet">
    <property name="server" ref="ocspServer"/>
  </bean>
  <service ref="healthServlet" interface="org.xipki.http.servlet.HttpServlet">
    <service-properties>
      <entry key="alias" value="/health/ocsp"/>
    </service-properties>
  </service>
</blueprint>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy