public Object invoke(Packet p, Method m, Object... args) throws InvocationTargetException, IllegalAccessException { if(jaxwsDirect) return core.invoke(p,m,args); Object ret = null; if(this.invokeObject != null) { ret = m.invoke(this.invokeObject, args); } return ret; }
/** * Invokes {@link Provider#invoke(Object)} */ public <T> T invokeProvider( @NotNull Packet p, T arg ) throws IllegalAccessException, InvocationTargetException { // default slow implementation that delegates to the other invoke method. return (T)invoke(p,invokeMethod,arg); }
/** * Invokes {@link AsyncProvider#invoke(Object, AsyncProviderCallback, WebServiceContext)} */ public <T> void invokeAsyncProvider( @NotNull Packet p, T arg, AsyncProviderCallback cbak, WebServiceContext ctxt ) throws IllegalAccessException, InvocationTargetException { // default slow implementation that delegates to the other invoke method. invoke(p, asyncInvokeMethod, arg, cbak, ctxt); }
/** * Invokes {@link AsyncProvider#invoke(Object, AsyncProviderCallback, WebServiceContext)} */ public <T> void invokeAsyncProvider( @NotNull Packet p, T arg, AsyncProviderCallback cbak, WebServiceContext ctxt ) throws IllegalAccessException, InvocationTargetException { // default slow implementation that delegates to the other invoke method. invoke(p, asyncInvokeMethod, arg, cbak, ctxt); }
/** * Invokes {@link Provider#invoke(Object)} */ public <T> T invokeProvider( @NotNull Packet p, T arg ) throws IllegalAccessException, InvocationTargetException { // default slow implementation that delegates to the other invoke method. return (T)invoke(p,invokeMethod,arg); }
/** * Invokes {@link AsyncProvider#invoke(Object, AsyncProviderCallback, WebServiceContext)} */ public <T> void invokeAsyncProvider( @NotNull Packet p, T arg, AsyncProviderCallback cbak, WebServiceContext ctxt ) throws IllegalAccessException, InvocationTargetException { // default slow implementation that delegates to the other invoke method. invoke(p, asyncInvokeMethod, arg, cbak, ctxt); }
/** * Invokes {@link Provider#invoke(Object)} */ public <T> T invokeProvider( @NotNull Packet p, T arg ) throws IllegalAccessException, InvocationTargetException { // default slow implementation that delegates to the other invoke method. return (T)invoke(p,invokeMethod,arg); }
@Override public Object invoke(Packet p, Method m, Object... args) throws InvocationTargetException, IllegalAccessException { Packet old = set(p); try { return invoker.invoke(p, m, args); } finally { set(old); } }
@Override public Object invoke(Packet p, Method m, Object... args) throws InvocationTargetException, IllegalAccessException { Packet old = set(p); try { return invoker.invoke(p, m, args); } finally { set(old); } }
@Override public Object invoke(Packet p, Method m, Object... args) throws InvocationTargetException, IllegalAccessException { Packet old = set(p); try { return invoker.invoke(p, m, args); } finally { set(old); } }
/** * This binds the parameters for SEI endpoints and invokes the endpoint method. The * return value, and response Holder arguments are used to create a new {@link Message} * that traverses through the Pipeline to transport. */ public @NotNull NextAction processRequest(@NotNull Packet req) { JavaCallInfo call = model.getDatabinding().deserializeRequest(req); if (call.getException() == null) { try { if (req.getMessage().isOneWay(model.getPort()) && req.transportBackChannel != null) { req.transportBackChannel.close(); } Object ret = getInvoker(req).invoke(req, call.getMethod(), call.getParameters()); call.setReturnValue(ret); } catch (InvocationTargetException e) { call.setException(e); } catch (Exception e) { call.setException(e); } } else if (call.getException() instanceof DispatchException) { DispatchException e = (DispatchException)call.getException(); return doReturnWith(req.createServerResponse(e.fault, model.getPort(), null, binding)); } Packet res = (Packet) model.getDatabinding().serializeResponse(call); res = req.relateServerResponse(res, req.endpoint.getPort(), model, req.endpoint.getBinding()); assert res != null; return doReturnWith(res); }
/** * This binds the parameters for SEI endpoints and invokes the endpoint method. The * return value, and response Holder arguments are used to create a new {@link Message} * that traverses through the Pipeline to transport. */ public @NotNull NextAction processRequest(@NotNull Packet req) { JavaCallInfo call = model.getDatabinding().deserializeRequest(req); if (call.getException() == null) { try { if (req.getMessage().isOneWay(model.getPort()) && req.transportBackChannel != null) { req.transportBackChannel.close(); } Object ret = getInvoker(req).invoke(req, call.getMethod(), call.getParameters()); call.setReturnValue(ret); } catch (InvocationTargetException e) { call.setException(e); } catch (Exception e) { call.setException(e); } } else if (call.getException() instanceof DispatchException) { DispatchException e = (DispatchException)call.getException(); return doReturnWith(req.createServerResponse(e.fault, model.getPort(), null, binding)); } Packet res = (Packet) model.getDatabinding().serializeResponse(call); res = req.relateServerResponse(res, req.endpoint.getPort(), model, req.endpoint.getBinding()); assert res != null; return doReturnWith(res); }
/** * This binds the parameters for SEI endpoints and invokes the endpoint method. The * return value, and response Holder arguments are used to create a new {@link Message} * that traverses through the Pipeline to transport. */ public @NotNull NextAction processRequest(@NotNull Packet req) { JavaCallInfo call = model.getDatabinding().deserializeRequest(req); if (call.getException() == null) { try { if (req.getMessage().isOneWay(model.getPort()) && req.transportBackChannel != null) { req.transportBackChannel.close(); } Object ret = getInvoker(req).invoke(req, call.getMethod(), call.getParameters()); call.setReturnValue(ret); } catch (InvocationTargetException e) { call.setException(e); } catch (Exception e) { call.setException(e); } } else if (call.getException() instanceof DispatchException) { DispatchException e = (DispatchException)call.getException(); return doReturnWith(req.createServerResponse(e.fault, model.getPort(), null, binding)); } Packet res = (Packet) model.getDatabinding().serializeResponse(call); res = req.relateServerResponse(res, req.endpoint.getPort(), model, req.endpoint.getBinding()); assert res != null; return doReturnWith(res); }