use of org.apache.openejb.server.webservices.saaj.SaajUniverse in project tomee by apache.
the class SaajInterceptor method registerInterceptors.
public static synchronized void registerInterceptors() {
if (!interceptorsRegistered) {
final Bus bus = CxfUtil.getBus();
final ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(CxfUtil.initBusLoader());
try {
SaajUniverse universe = new SaajUniverse();
bus.getOutInterceptors().add(new SaajOutInterceptor(universe));
bus.getInInterceptors().add(new SaajInInterceptor(universe));
bus.getInInterceptors().add(new SaajInFaultInterceptor(universe));
} finally {
if (oldLoader != null) {
CxfUtil.clearBusLoader(oldLoader);
}
}
interceptorsRegistered = true;
}
}
use of org.apache.openejb.server.webservices.saaj.SaajUniverse in project tomee by apache.
the class ServiceEndpointMethodInterceptor method intercept.
public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
SaajUniverse universe = new SaajUniverse();
universe.set(SaajUniverse.AXIS1);
try {
return doIntercept(method, objects, methodProxy);
} finally {
universe.unset();
}
}
use of org.apache.openejb.server.webservices.saaj.SaajUniverse in project tomee by apache.
the class AxisWsContainer method onMessage.
public void onMessage(final HttpRequest request, final HttpResponse response) throws Exception {
final SaajUniverse universe = new SaajUniverse();
universe.set(SaajUniverse.AXIS1);
try {
doService(request, response);
} finally {
universe.unset();
}
}
Aggregations