Package javax.xml.ws

Examples of javax.xml.ws.Holder


        if (client) {
            List<Holder> outHolders = CastUtils.cast((List)message.getExchange()
                .getOutMessage().get(CLIENT_HOLDERS));
            for (MessagePartInfo part : parts) {
                if (part.getIndex() != 0 && part.getTypeClass() != null) {
                    Holder holder = (Holder)outHolders.get(part.getIndex() - 1);
                    if (holder != null) {
                        holder.value = inObjects.get(part);
                        inObjects.put(part, holder);
                    }
                }
View Full Code Here


                    }
                }
            }
            for (MessagePartInfo part : parts) {
                if (part.getIndex() > 0) {
                    Holder holder = (Holder)outObjects.get(part);
                    outObjects.put(part, holder.value);
                }
            }
        } else {
            List<Object> holders = new ArrayList<Object>(outObjects);
View Full Code Here

                    }
                }
            }
            for (MessagePartInfo part : parts) {
                if (part.getIndex() > 0) {
                    Holder holder = (Holder)outObjects.get(part);
                    outObjects.put(part, holder.value);
                }
            }
        } else {
            List<MessagePartInfo> parts = op.getOutput().getMessageParts();
            List<Object> holders = new ArrayList<Object>(outObjects);
            for (int x = 0; x < outObjects.size(); x++) {
                Object o = outObjects.get(x);
                if (!(o instanceof Holder)) {
                    holders.set(x, null);
                }
            }
            message.put(HolderInInterceptor.CLIENT_HOLDERS, holders);
            for (MessagePartInfo part : parts) {
                if (part.getIndex() > 0) {
                    Holder holder = (Holder)outObjects.get(part.getIndex() - 1);
                    outObjects.set(part.getIndex() - 1, holder.value);
                }
            }
        }
       
View Full Code Here

        if (client) {
            List<Holder> outHolders = CastUtils.cast((List)message.getExchange()
                .getOutMessage().get(CLIENT_HOLDERS));
            for (MessagePartInfo part : parts) {
                if (part.getIndex() != 0) {
                    Holder holder = (Holder)outHolders.get(part.getIndex() - 1);
                    holder.value = inObjects.get(part);
                    inObjects.put(part, holder);
                }
            }
        } else {
View Full Code Here

    }

    @Override
    protected void setValue(Object hObj, Object value)
    {
        Holder holder = (Holder) hObj;
        holder.value = value;
    }
View Full Code Here

           
            List<Holder> holders = CastUtils.cast((List)exchange.get(CLIENT_HOLDERS));
            for (MessagePartInfo part : parts) {
                int idx = part.getIndex();
                if (idx >= 0) {
                    Holder holder = holders.get(holderIdx);
                    holder.value = inObjects.get(partIdx);
                    holderIdx++;
                    partIdx++;
                }
            }
        } else {
            for (MessagePartInfo part : parts) {
                int idx = part.getIndex();
                if (idx >= 0) {
                    if (part.getProperty(ReflectionServiceFactoryBean.MODE_INOUT) != null) {
                        Object object = inObjects.get(idx);
                        inObjects.set(idx, new Holder<Object>(object));
                    } else {
                        inObjects.add(idx, new Holder());
                    }
                }
            }
        }
    }
View Full Code Here

            }
           
            for (MessagePartInfo part : parts) {
                int methodIdx = part.getIndex();
                if (methodIdx >= 0) {
                    Holder holder = (Holder) reqObjects.get(methodIdx);
                    Object o = holder.value;
                    if (methodIdx < outIdx && holderOutIsFirst) {
                        //Holder is first part of mesage
                        outObjects.add(methodIdx, o);
                    } else if (outIdx >= outObjects.size()) {
View Full Code Here

        }
    }

    private Object getValue(MessagePartInfo part, List<Object> outObjects, int idx) {
        if (part.getProperty(ReflectionServiceFactoryBean.MODE_INOUT) != null) {
            Holder holder = (Holder) outObjects.get(idx);
            if (holder == null) {
                return null;
            } else {
                return holder.value;
            }
View Full Code Here

                                           List<Object> newObjects) {
        Object deleteObject = null;
        for (MessagePartInfo part : parts) {
            int idx = part.getIndex();
            if (idx >= 0) {
                Holder holder = (Holder) outObjects.get(idx);

                if (part.getProperty(ReflectionServiceFactoryBean.MODE_OUT) != null) {
                    if (deleteObject == null) {
                        deleteObject = new Object();
                    }
View Full Code Here

      inout.setUuid("1234");

      Basket basket = new Basket();
      basket.setCustomerId("4567");
     
      Receipt receipt = port.submitBasket(new Holder(inout), basket);
      assertTrue(receipt.getMsg().equals("1234"));
   }
View Full Code Here

TOP

Related Classes of javax.xml.ws.Holder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.