public Iterator getChildElements(Name name) { QName qName = new QName(name.getURI(), name.getLocalName()); return getChildren(omTarget.getChildrenWithName(qName)); }
public Iterator getChildElements(Name name) { QName qName = new QName(name.getURI(), name.getLocalName()); return getChildren(omTarget.getChildrenWithName(qName)); }
Iterator ite = env.getBody().getChildrenWithName(notify);
Iterator ite = env.getBody().getChildrenWithName(notify);
public ProcessingContext build(MessageContext msgContext, WsEventingOperations operation) { ProcessingContext processingContext = new ProcessingContext(); switch (operation) { case SUBSCRIBE: { Iterator<OMElement> iterator = msgContext.getEnvelope().getBody() .getChildrenWithName(new QName(NameSpaceConstants.WSE_NS.getNamespaceURI(), "Subscribe")); if (!iterator.hasNext()) { throw new RuntimeException("invalid subscription message - no subscribe element"); } onSubscription(processingContext, iterator.next()); } break; } processingContext.setMessageConext(msgContext); processingContext.setEnvelope(msgContext.getEnvelope()); extractInfoFromHeader(processingContext, msgContext.getEnvelope().getHeader()); String topicFromUrl = BrokerUtil.getTopicFromRequestPath(msgContext.getTo().getAddress()); processingContext.setContextParameter(ContextParameters.TOPIC_FROM_URL, topicFromUrl); return processingContext; }
public ProcessingContext build(MessageContext msgContext, WsEventingOperations operation) { ProcessingContext processingContext = new ProcessingContext(); switch (operation) { case SUBSCRIBE: { Iterator<OMElement> iterator = msgContext.getEnvelope().getBody() .getChildrenWithName(new QName(NameSpaceConstants.WSE_NS.getNamespaceURI(), "Subscribe")); if (!iterator.hasNext()) { throw new RuntimeException("invalid subscription message - no subscribe element"); } onSubscription(processingContext, iterator.next()); } break; } processingContext.setMessageConext(msgContext); processingContext.setEnvelope(msgContext.getEnvelope()); extractInfoFromHeader(processingContext, msgContext.getEnvelope().getHeader()); String topicFromUrl = BrokerUtil.getTopicFromRequestPath(msgContext.getTo().getAddress()); processingContext.setContextParameter(ContextParameters.TOPIC_FROM_URL, topicFromUrl); return processingContext; }
case SUBSCRIBE: { Iterator<OMElement> iterator = soapBody.getChildrenWithName(new QName(NameSpaceConstants.WSNT_NS .getNamespaceURI(), "SubscribeRequest")); if (!iterator.hasNext()) {
case SUBSCRIBE: { Iterator<OMElement> iterator = soapBody.getChildrenWithName(new QName(NameSpaceConstants.WSNT_NS .getNamespaceURI(), "SubscribeRequest")); if (!iterator.hasNext()) {