3.4.3. 处理程序
JAX-WS 处理程序添加到处理程序链中,并指定处理程序类的完全限定名称。部署端点时,会为每个引用部署创建一个该类的实例。部署类加载器或 org.jboss.as.webservices.server.integration 模块的
类加载程序必须能够加载处理程序类。
有关可用处理程序的列表,请参阅 Handler Javadocs。
添加处理程序
您可以使用以下管理 CLI 命令将处理程序添加到处理程序链:您必须提供处理程序的类名称。
/subsystem=webservices/endpoint-config=My-Endpoint-Config/post-handler-chain=my-post-handler-chain/handler=my-handler:add(class="com.arjuna.webservices11.wsarj.handler.InstanceIdentifierInHandler")
配置处理程序
您可以使用管理 CLI 更新处理程序的类。
/subsystem=webservices/endpoint-config=My-Endpoint-Config/post-handler-chain=my-post-handler-chain/handler=my-handler:add(class="org.jboss.ws.common.invocation.RecordingServerHandler")
删除处理程序
您可以使用管理 CLI 删除处理程序。
/subsystem=webservices/endpoint-config=My-Endpoint-Config/post-handler-chain=my-post-handler-chain/handler=my-handler: