public void setEndpoint(WSEndpoint endpoint) { this.endpoint = endpoint; WSWebServiceContext webServiceContext = new AbstractWebServiceContext(endpoint) { public @Nullable Packet getRequestPacket() { Packet p = packets.get(); return p; } }; invoker.start(webServiceContext,endpoint); }
public void preDestroy() { invoker.dispose(); }
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; }
public <T> void invokeAsyncProvider(Packet p, T arg, AsyncProviderCallback cbak, WebServiceContext ctxt) throws IllegalAccessException, InvocationTargetException { if(jaxwsDirect) core.invokeAsyncProvider(p, arg, cbak, ctxt); if(this.invokeObject != null) { asyncInvokeMethod.invoke(this.invokeObject, arg); } } }
public <T> T invokeProvider(Packet p, T arg) throws IllegalAccessException, InvocationTargetException { if(jaxwsDirect) return core.invokeProvider(p, arg); Object ret = null; if(this.invokeObject != null) { ret = invokeMethod.invoke(this.invokeObject, arg); } return (T)ret; }
@Override public <T>void invokeAsyncProvider(Packet p, T arg, AsyncProviderCallback cbak, WebServiceContext ctxt) throws IllegalAccessException, InvocationTargetException { Packet old = set(p); try { invoker.invokeAsyncProvider(p, arg, cbak, ctxt); } finally { set(old); } }
@Override public <T>T invokeProvider(Packet p, T arg) throws IllegalAccessException, InvocationTargetException { Packet old = set(p); try { return invoker.invokeProvider(p, arg); } finally { set(old); } }
public void setEndpoint(WSEndpoint endpoint) { this.endpoint = endpoint; WSWebServiceContext webServiceContext = new AbstractWebServiceContext(endpoint) { public @Nullable Packet getRequestPacket() { Packet p = packets.get(); return p; } }; invoker.start(webServiceContext,endpoint); }
/** * 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 <T>void invokeAsyncProvider(Packet p, T arg, AsyncProviderCallback cbak, WebServiceContext ctxt) throws IllegalAccessException, InvocationTargetException { Packet old = set(p); try { invoker.invokeAsyncProvider(p, arg, cbak, ctxt); } finally { set(old); } }
@Override public <T>T invokeProvider(Packet p, T arg) throws IllegalAccessException, InvocationTargetException { Packet old = set(p); try { return invoker.invokeProvider(p, arg); } finally { set(old); } }
public void dispose() { core.dispose(); }
public void setEndpoint(WSEndpoint endpoint) { this.endpoint = endpoint; WSWebServiceContext webServiceContext = new AbstractWebServiceContext(endpoint) { public @Nullable Packet getRequestPacket() { Packet p = packets.get(); return p; } }; invoker.start(webServiceContext,endpoint); }
/** * 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); }
@Override public <T>void invokeAsyncProvider(Packet p, T arg, AsyncProviderCallback cbak, WebServiceContext ctxt) throws IllegalAccessException, InvocationTargetException { Packet old = set(p); try { invoker.invokeAsyncProvider(p, arg, cbak, ctxt); } finally { set(old); } }
@Override public <T>T invokeProvider(Packet p, T arg) throws IllegalAccessException, InvocationTargetException { Packet old = set(p); try { return invoker.invokeProvider(p, arg); } finally { set(old); } }
public void preDestroy() { invoker.dispose(); }
Invoker invoker = new Invoker(new ConcreteCommand()); invoker.start()
/** * 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); }
getInvoker(request).invokeAsyncProvider(request, param, callback, ctxt); } catch(Throwable e) { LOGGER.log(Level.SEVERE, e.getMessage(), e);