/** * 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); }
/** * Returns endpoint instance associated with current invocation. * * @param invocation current invocation * @return target bean in invocation */ private Object getTargetBean(final Invocation invocation) { final InvocationContext invocationContext = invocation.getInvocationContext(); return invocationContext.getTargetBean(); }
private Invocation createInvocation(InvocationHandler invHandler, Object serviceObject, Endpoint ep, Method m, Object[] paramArray) { Invocation inv = invHandler.createInvocation(); InvocationContext invContext = inv.getInvocationContext(); WebServiceContext wsCtx = new WebServiceContextImpl(null); invContext.addAttachment(WebServiceContext.class, wsCtx); invContext.setTargetBean(serviceObject); inv.setJavaMethod(m); inv.setArgs(paramArray); return inv; }
public ExtensibleWebServiceContext newWebServiceContext(InvocationType type, MessageContext messageContext) { ExtensibleWebServiceContext context = null; if(type.toString().indexOf("EJB")!=-1 || type.toString().indexOf("MDB")!=-1) context = new WebServiceContextEJB(messageContext); else context = new WebServiceContextJSE(messageContext); return context; } }
public <T> T get(Class<T> propertyType) { return wsInv.getInvocationContext().getAttachment(propertyType); } }
public Object getInstance() { return wsInvocation.getInvocationContext().getTargetBean(); } };
public ExtensibleWebServiceContext newWebServiceContext(InvocationType type, MessageContext messageContext) { ExtensibleWebServiceContext context = null; if(type.toString().indexOf("EJB")!=-1 || type.toString().indexOf("MDB")!=-1) context = new WebServiceContextEJB(messageContext); else context = new WebServiceContextJSE(messageContext); return context; } }
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 Object getInstance() { return wsInvocation.getInvocationContext().getTargetBean(); } };
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); }
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); }
/** * 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 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); }
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); }