|
562 | 562 | apiman-gateway.policy-factory.foo1=value-1
|
563 | 563 | apiman-gateway.policy-factory.foo2=value-2</pre><p><span class="strong"><strong>Note</strong></span>: there is rarely a reason to provide a custom policy factory.</p></div><div class="section" lang="en-US"><div class="titlepage"><div><div><h5 class="title"><a id="_io_apiman_gateway_engine_ipolicyfailurewriter_example_configuration"/>4.5.3.2.5. io.apiman.gateway.engine.IPolicyFailureWriter Example Configuration</h5></div></div></div><pre class="screen">apiman-gateway.writers.policy-failure=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.FooPolicyFailureWriterImpl
|
564 | 564 | apiman-gateway.writers.policy-failure.foo1=value-1
|
565 |
| -apiman-gateway.writers.policy-failure.foo2=value-2</pre></div><div class="section" lang="en-US"><div class="titlepage"><div><div><h5 class="title"><a id="_io_apiman_gateway_engine_ipolicyerrorwriter_example_configuration"/>4.5.3.2.6. io.apiman.gateway.engine.IPolicyErrorWriter Example Configuration</h5></div></div></div><pre class="screen">apiman-gateway.writers.policy-error=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.FooPolicyErrorWriterImpl |
566 |
| -apiman-gateway.writers.policy-error.foo1=value-1 |
567 |
| -apiman-gateway.writers.policy-error.foo2=value-2</pre></div><div class="section" lang="en-US"><div class="titlepage"><div><div><h5 class="title"><a id="_io_apiman_gateway_engine_components_ibufferfactorycomponent_example_configuration"/>4.5.3.2.7. io.apiman.gateway.engine.components.IBufferFactoryComponent Example Configuration</h5></div></div></div><pre class="screen">apiman-gateway.components.IBufferFactoryComponent=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.FooBufferFactoryComponentImpl |
| 565 | +apiman-gateway.writers.policy-failure.foo2=value-2</pre></div><div class="section" lang="en-US"><div class="titlepage"><div><div><h5 class="title"><a id="_io_apiman_gateway_engine_ipolicyerrorwriter_example_configuration"/>4.5.3.2.6. io.apiman.gateway.engine.IPolicyErrorWriter Example Configuration</h5></div></div></div><pre class="screen">apiman-gateway.writers.error=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.FooPolicyErrorWriterImpl |
| 566 | +apiman-gateway.writers.error.foo1=value-1 |
| 567 | +apiman-gateway.writers.error.foo2=value-2</pre></div><div class="section" lang="en-US"><div class="titlepage"><div><div><h5 class="title"><a id="_io_apiman_gateway_engine_components_ibufferfactorycomponent_example_configuration"/>4.5.3.2.7. io.apiman.gateway.engine.components.IBufferFactoryComponent Example Configuration</h5></div></div></div><pre class="screen">apiman-gateway.components.IBufferFactoryComponent=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.FooBufferFactoryComponentImpl |
568 | 568 | apiman-gateway.components.IBufferFactoryComponent.foo1=value-1
|
569 | 569 | apiman-gateway.components.IBufferFactoryComponent.foo2=value-2</pre><p><span class="strong"><strong>Note</strong></span>: typically the buffer factory is specific to the platform. For example, there is a buffer factory
|
570 | 570 | used when the API Gateway is running in EAP or WildFly. There is a different buffer factory used when the
|
|
678 | 678 | the above interface(s) inside a valid apiman plugin.</p><div xmlns:d="http://docbook.org/ns/docbook" xmlns:rf="java:org.jboss.highlight.XhtmlRendererFactory" class="tip"><h2>Tip</h2><p>See the "Creating a Plugin" section of this guide for more information.</p></div><p>Once the plugin is created with your class inside, configure either the failure writer, the error
|
679 | 679 | writer, or both in <span class="emphasis"><em>apiman.properties</em></span> like this:</p><pre class="screen">apiman-gateway.writers.policy-failure=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.PolicyFailureWriterImpl
|
680 | 680 | apiman-gateway.writers.policy-failure.property1=value-1
|
681 |
| -apiman-gateway.writers.policy-failure.property2=value-2</pre><pre class="screen">apiman-gateway.writers.policy-error=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.PolicyErrorWriterImpl |
682 |
| -apiman-gateway.writers.policy-error.property1=value-1 |
683 |
| -apiman-gateway.writers.policy-error.property2=value-2</pre><p>Remember, if your implementation class has a constructor that accepts a Map<String, String>, then apiman |
| 681 | +apiman-gateway.writers.policy-failure.property2=value-2</pre><pre class="screen">apiman-gateway.writers.error=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.PolicyErrorWriterImpl |
| 682 | +apiman-gateway.writers.error.property1=value-1 |
| 683 | +apiman-gateway.writers.error.property2=value-2</pre><p>Remember, if your implementation class has a constructor that accepts a Map<String, String>, then apiman |
684 | 684 | will pass the set of applicable configuration properties it finds in apiman.properties when the class is
|
685 | 685 | instantiated. In the example above, your DataEncrypterImpl class will be instantiated, with a Map
|
686 | 686 | passed to its constructor containing the following:</p><div class="itemizedlist"><ul><li>property1=value-1</li><li>property2=value-2</li></ul></div></div><div class="section" lang="en-US"><div class="titlepage"><div><div><h3 class="title"><a id="_providing_a_custom_user_bootstrapper"/>4.5.7. Providing a Custom User Bootstrapper</h3></div></div></div><p>Whenever a new user is added to apiman, a record is added for her in the API Manager data store. No
|
|
0 commit comments