/** * Retrieves attachment type from Web Service invocation context attachments. * * @param <T> attachment type * @param attachmentType attachment class * @return attachment value */ public <T> T get(final Class<T> attachmentType) { return this.wsInvocation.getInvocationContext().getAttachment(attachmentType); }
public <T> T get(Class<T> propertyType) { return wsInv.getInvocationContext().getAttachment(propertyType); } }
public CallbackImpl(Invocation epInv) { jaxrpcMessageContext = epInv.getInvocationContext().getAttachment(javax.xml.rpc.handler.MessageContext.class); jaxwsMessageContext = epInv.getInvocationContext().getAttachment(javax.xml.ws.handler.MessageContext.class); }
/** * Returns WebServiceContext associated with this invocation. * * @param invocation current invocation * @return web service context or null if not available */ private WebServiceContext getWebServiceContext(final Invocation invocation) { final InvocationContext invocationContext = invocation.getInvocationContext(); return invocationContext.getAttachment(WebServiceContext.class); }
public <T> T get(Class<T> propertyType) { return wsInv.getInvocationContext().getAttachment(propertyType); } }
public <T> T get(Class<T> propertyType) { return wsInv.getInvocationContext().getAttachment(propertyType); } }
/** * Retrieves attachment type from Web Service invocation context attachments. * * @param <T> attachment type * @param attachmentType attachment class * @return attachment value */ public <T> T get(final Class<T> attachmentType) { return this.wsInvocation.getInvocationContext().getAttachment(attachmentType); }
public CallbackImpl(Invocation epInv) { jaxrpcMessageContext = epInv.getInvocationContext().getAttachment(javax.xml.rpc.handler.MessageContext.class); jaxwsMessageContext = epInv.getInvocationContext().getAttachment(javax.xml.ws.handler.MessageContext.class); }
/** * Retrieves attachment type from Web Service invocation context attachments. * * @param <T> attachment type * @param attachmentType attachment class * @return attachment value */ public <T> T get(final Class<T> attachmentType) { return this.wsInvocation.getInvocationContext().getAttachment(attachmentType); }
public CallbackImpl(Invocation epInv) { jaxrpcMessageContext = epInv.getInvocationContext().getAttachment(javax.xml.rpc.handler.MessageContext.class); jaxwsMessageContext = epInv.getInvocationContext().getAttachment(javax.xml.ws.handler.MessageContext.class); }
public <T> T get(Class<T> propertyType) { return wsInv.getInvocationContext().getAttachment(propertyType); } }
public CallbackImpl(Invocation epInv) { jaxrpcMessageContext = epInv.getInvocationContext().getAttachment(javax.xml.rpc.handler.MessageContext.class); jaxwsMessageContext = epInv.getInvocationContext().getAttachment(javax.xml.ws.handler.MessageContext.class); }
private static WebServiceContext getWebServiceContext(final Invocation invocation) { final InvocationContext invocationContext = invocation.getInvocationContext(); return invocationContext.getAttachment(WebServiceContext.class); }
private static WebServiceContext getWebServiceContext(final Invocation invocation) { final InvocationContext invocationContext = invocation.getInvocationContext(); return invocationContext.getAttachment(WebServiceContext.class); }
private EndpointInvocation getEndpointInvocation() { return getInvocationContext().getAttachment(EndpointInvocation.class); }
private static WebServiceContext getWebServiceContext(final Invocation invocation) { final InvocationContext invocationContext = invocation.getInvocationContext(); return invocationContext.getAttachment(WebServiceContext.class); }
@Override protected void prepareForInvocation(final InterceptorContext context, final Invocation wsInvocation) { final MessageContext msgContext = wsInvocation.getInvocationContext().getAttachment(MessageContext.class); final HandlerCallback callback = wsInvocation.getInvocationContext().getAttachment(HandlerCallback.class); context.putPrivateData(MessageContext.class, msgContext); context.putPrivateData(HandlerCallback.class, callback); context.putPrivateData(Invocation.class, wsInvocation); }
/** * Calls {@link javax.xml.rpc.server.ServiceLifecycle#init(Object)} * method on target bean if this bean implements * {@link javax.xml.rpc.server.ServiceLifecycle} interface. * * @param invocation current invocation * @throws Exception if any error occurs */ @Override public void onBeforeInvocation(final Invocation invocation) throws Exception { final InvocationContext invocationContext = invocation.getInvocationContext(); final Object targetBean = invocationContext.getTargetBean(); final boolean isJaxrpcLifecycleBean = targetBean instanceof ServiceLifecycle; if (isJaxrpcLifecycleBean) { final ServletEndpointContext sepContext = invocationContext.getAttachment(ServletEndpointContext.class); ((ServiceLifecycle) targetBean).init(sepContext); } }
public void invoke(Endpoint ep, Invocation epInv) throws Exception { try { Object targetBean = getTargetBean(ep, epInv); InvocationContext invContext = epInv.getInvocationContext(); WebServiceContext wsContext = invContext.getAttachment(WebServiceContext.class); if (wsContext != null) { ResourceInjector injector = resourceInjectorFactory.newResourceInjector(); injector.inject(targetBean, wsContext); } Method method = getImplMethod(targetBean.getClass(), epInv.getJavaMethod()); Object retObj = method.invoke(targetBean, epInv.getArgs()); epInv.setReturnValue(retObj); } catch (Exception e) { handleInvocationException(e); } }
public void invoke(Endpoint ep, Invocation epInv) throws Exception { try { Object targetBean = getTargetBean(ep, epInv); InvocationContext invContext = epInv.getInvocationContext(); WebServiceContext wsContext = invContext.getAttachment(WebServiceContext.class); if (wsContext != null) { ResourceInjector injector = resourceInjectorFactory.newResourceInjector(); injector.inject(targetBean, wsContext); } Method method = getImplMethod(targetBean.getClass(), epInv.getJavaMethod()); Object retObj = method.invoke(targetBean, epInv.getArgs()); epInv.setReturnValue(retObj); } catch (Exception e) { handleInvocationException(e); } }