33import io .roastedroot .proxywasm .PluginFactory ;
44import io .roastedroot .proxywasm .StartException ;
55import io .roastedroot .proxywasm .internal .ServerAdaptor ;
6- import io .roastedroot .proxywasm .jaxrs .internal .AbstractWasmPluginFeature ;
6+ import io .roastedroot .proxywasm .jaxrs .internal .AbstractProxyWasmFeature ;
77import java .util .Arrays ;
88import java .util .List ;
99
1010/**
1111 * A JAX-RS {@link jakarta.ws.rs.core.Feature} that enables Proxy-Wasm plugin filtering
12- * for JAX-RS applications. This feature registers the necessary {@link WasmPluginFilter }
13- * to intercept requests and responses for resources annotated with {@link WasmPlugin }.
12+ * for JAX-RS applications. This feature registers the necessary {@link ProxyWasmFilter }
13+ * to intercept requests and responses for resources annotated with {@link ProxyWasm }.
1414 *
1515 * <p>To use this feature, register an instance of it with your JAX-RS application, providing
1616 * the required {@link ServerAdaptor} and a list of {@link PluginFactory} instances.
1717 *
1818 * <p>If you are using a CDI container like quarkus, you will be using the
19- * {@link io.roastedroot.proxywasm.jaxrs.cdi.WasmPluginFeature } instead.
19+ * {@link io.roastedroot.proxywasm.jaxrs.cdi.ProxyWasmFeature } instead.
2020 *
2121 * <pre>
2222 * public class MyApplication extends jakarta.ws.rs.core.Application {
3434 * // Assuming a ServerAdaptor and PluginFactory are available
3535 * ServerAdaptor serverAdaptor = ...;
3636 * PluginFactory myPluginFactory = ...;
37- * singletons.add(new WasmPluginFeature (serverAdaptor, myPluginFactory));
37+ * singletons.add(new ProxyWasmFeature (serverAdaptor, myPluginFactory));
3838 * } catch (StartException e) {
39- * throw new RuntimeException("Failed to initialize WasmPluginFeature ", e);
39+ * throw new RuntimeException("Failed to initialize ProxyWasmFeature ", e);
4040 * }
4141 * return singletons;
4242 * }
4343 * }
4444 * </pre>
4545 *
46- * @see WasmPlugin
47- * @see WasmPluginFilter
46+ * @see ProxyWasm
47+ * @see ProxyWasmFilter
4848 * @see PluginFactory
4949 * @see ServerAdaptor
5050 */
51- public class WasmPluginFeature extends AbstractWasmPluginFeature {
51+ public class ProxyWasmFeature extends AbstractProxyWasmFeature {
5252
5353 /**
54- * Constructs a new WasmPluginFeature .
54+ * Constructs a new ProxyWasmFeature .
5555 *
5656 * @param httpServer The {@link ServerAdaptor} used to adapt JAX-RS specific request/response
5757 * objects for the Proxy-Wasm host.
@@ -60,13 +60,13 @@ public class WasmPluginFeature extends AbstractWasmPluginFeature {
6060 * @throws StartException If an error occurs during the initialization or startup of the
6161 * underlying Proxy-Wasm plugins.
6262 */
63- public WasmPluginFeature (ServerAdaptor httpServer , PluginFactory ... factories )
63+ public ProxyWasmFeature (ServerAdaptor httpServer , PluginFactory ... factories )
6464 throws StartException {
6565 this (httpServer , Arrays .asList (factories ));
6666 }
6767
6868 /**
69- * Constructs a new WasmPluginFeature with a list of factories.
69+ * Constructs a new ProxyWasmFeature with a list of factories.
7070 *
7171 * @param httpServer The {@link ServerAdaptor} used to adapt JAX-RS specific request/response
7272 * objects for the Proxy-Wasm host.
@@ -75,7 +75,7 @@ public WasmPluginFeature(ServerAdaptor httpServer, PluginFactory... factories)
7575 * @throws StartException If an error occurs during the initialization or startup of the
7676 * underlying Proxy-Wasm plugins.
7777 */
78- public WasmPluginFeature (ServerAdaptor httpServer , List <PluginFactory > factories )
78+ public ProxyWasmFeature (ServerAdaptor httpServer , List <PluginFactory > factories )
7979 throws StartException {
8080 init (factories , httpServer );
8181 }
0 commit comments