Hi to all,
I am experimenting with Interceptors and managed to implement a simple
Interceptor:
package com.manoel.interceptors;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;
public class MyInterceptor extends AbstractPhaseInterceptor<Message> {
public MyInterceptor() {
super(Phase.RECEIVE);
}
public void handleMessage(Message message) {
System.out.println("-------------- INTERCEPTOOOR --------------");
}
public void handleFault(Message messageParam) {
System.out.println("------FAAAAAUUUUUUUULLLLLLTTTTTT-------");
}
}
As a web service I have a getGreeting() method which is accessed by:
http://localhost:8080/HelloWorldWebServices/services/HelloWorldPort/getGreeting<http://localhost:8080/HelloWorldWebServices/services/HelloWorldPort/getGreeting1?arg0=Manoel>
Now I want that any other request method which does not exist in my web
service (for example getGreetingMe()) is redirected to getGreeting() as the
address above.
How should I tackle this idea?
Thanks
Manoel