public MAPRelatesTo getRelatesTo() { MAPBuilder builder = CXFMAPBuilder.getBuilder(); RelatesToType relatesTo = implementation.getRelatesTo(); if (relatesTo != null) { String type = relatesTo.getRelationshipType(); QName relatesToType; int index = type.indexOf("}"); if (index == -1) { relatesToType = new QName(type); } else { String ns = type.substring(1, index + 1); String name = type.substring(index + 1); relatesToType = new QName(ns, name); } return builder.newRelatesTo(relatesTo.getValue(), relatesToType); } else { return null; } }
buf.append(relatesTo.getValue());
buf.append(relatesTo.getValue());
/** * Marks a message as partial response * * @param message the current message */ private void markPartialResponse(SoapMessage message, AddressingProperties maps) { if (ContextUtils.isRequestor(message) && null != maps && (null == maps.getRelatesTo() || (null != maps.getRelatesTo() && Names.WSA_UNSPECIFIED_RELATIONSHIP.equals(maps.getRelatesTo().getValue())))) { message.put(Message.PARTIAL_RESPONSE_MESSAGE, Boolean.TRUE); } }
/** * Marks a message as partial response * * @param message the current message */ private void markPartialResponse(SoapMessage message, AddressingProperties maps) { if (ContextUtils.isRequestor(message) && null != maps && (null == maps.getRelatesTo() || (null != maps.getRelatesTo() && Names.WSA_UNSPECIFIED_RELATIONSHIP.equals(maps.getRelatesTo().getValue())))) { message.put(Message.PARTIAL_RESPONSE_MESSAGE, Boolean.TRUE); } }
/** * Convert from 2005/08 RelatesToType to 2004/03 Relationship. * * @param internal the 2005/08 RelatesToType * @return an equivalent 2004/03 Relationship */ public static org.apache.cxf.ws.addressing.v200403.Relationship convertTo200403(RelatesToType internal) { org.apache.cxf.ws.addressing.v200403.Relationship exposed = null; if (internal != null) { exposed = Names200403.WSA_OBJECT_FACTORY.createRelationship(); exposed.setValue(internal.getValue()); String internalRelationshipType = internal.getRelationshipType(); if (internalRelationshipType != null) { QName exposedRelationshipType = null; if (!Names.WSA_RELATIONSHIP_REPLY.equals(internalRelationshipType)) { exposedRelationshipType = new QName(internalRelationshipType); } exposed.setRelationshipType(exposedRelationshipType); } putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); } return exposed; }
/** * Convert from 2005/08 RelatesToType to 2004/08 Relationship. * * @param internal the 2005/08 RelatesToType * @return an equivalent 2004/08 Relationship */ public static Relationship convert(RelatesToType internal) { Relationship exposed = null; if (internal != null) { exposed = Names200408.WSA_OBJECT_FACTORY.createRelationship(); exposed.setValue(internal.getValue()); String internalRelationshipType = internal.getRelationshipType(); if (internalRelationshipType != null) { QName exposedRelationshipType = null; if (!Names.WSA_RELATIONSHIP_REPLY.equals(internalRelationshipType)) { exposedRelationshipType = new QName(internalRelationshipType); } exposed.setRelationshipType(exposedRelationshipType); } putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); } return exposed; }
/** * Convert from 2005/08 RelatesToType to 2004/08 Relationship. * * @param internal the 2005/08 RelatesToType * @return an equivalent 2004/08 Relationship */ public static Relationship convert(RelatesToType internal) { Relationship exposed = null; if (internal != null) { exposed = Names200408.WSA_OBJECT_FACTORY.createRelationship(); exposed.setValue(internal.getValue()); String internalRelationshipType = internal.getRelationshipType(); if (internalRelationshipType != null) { QName exposedRelationshipType = null; if (!Names.WSA_RELATIONSHIP_REPLY.equals(internalRelationshipType)) { exposedRelationshipType = new QName(internalRelationshipType); } exposed.setRelationshipType(exposedRelationshipType); } putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); } return exposed; }
/** * Return a text representation of a header value for logging. * * @param <T> header type * @param value header value * @return */ private <T> String getLogText(T value) { String text = "unknown"; if (value == null) { text = "null"; } else if (value instanceof AttributedURIType) { text = ((AttributedURIType)value).getValue(); } else if (value instanceof EndpointReferenceType) { text = ((EndpointReferenceType)value).getAddress() != null ? ((EndpointReferenceType)value).getAddress().getValue() : "null"; } else if (value instanceof RelatesToType) { text = ((RelatesToType)value).getValue(); } return text; }
/** * Return a text representation of a header value for logging. * * @param <T> header type * @param value header value * @return */ private <T> String getLogText(T value) { String text = "unknown"; if (value == null) { text = "null"; } else if (value instanceof AttributedURIType) { text = ((AttributedURIType)value).getValue(); } else if (value instanceof EndpointReferenceType) { text = ((EndpointReferenceType)value).getAddress() != null ? ((EndpointReferenceType)value).getAddress().getValue() : "null"; } else if (value instanceof RelatesToType) { text = ((RelatesToType)value).getValue(); } return text; }
/** * Convert from 2005/08 RelatesToType to 2004/03 Relationship. * * @param internal the 2005/08 RelatesToType * @return an equivalent 2004/03 Relationship */ public static org.apache.cxf.ws.addressing.v200403.Relationship convertTo200403(RelatesToType internal) { org.apache.cxf.ws.addressing.v200403.Relationship exposed = null; if (internal != null) { exposed = Names200403.WSA_OBJECT_FACTORY.createRelationship(); exposed.setValue(internal.getValue()); String internalRelationshipType = internal.getRelationshipType(); if (internalRelationshipType != null) { QName exposedRelationshipType = null; if (!Names.WSA_RELATIONSHIP_REPLY.equals(internalRelationshipType)) { exposedRelationshipType = new QName(internalRelationshipType); } exposed.setRelationshipType(exposedRelationshipType); } putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); } return exposed; }
/** * Convert from 2005/08 RelatesToType to 2004/08 Relationship. * * @param internal the 2005/08 RelatesToType * @return an equivalent 2004/08 Relationship */ public static Relationship convert(RelatesToType internal) { Relationship exposed = null; if (internal != null) { exposed = Names200408.WSA_OBJECT_FACTORY.createRelationship(); exposed.setValue(internal.getValue()); String internalRelationshipType = internal.getRelationshipType(); if (internalRelationshipType != null) { QName exposedRelationshipType = null; if (!Names.WSA_RELATIONSHIP_REPLY.equals(internalRelationshipType)) { exposedRelationshipType = new QName(internalRelationshipType); } exposed.setRelationshipType(exposedRelationshipType); } putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); } return exposed; }
/** * Convert from 2005/08 RelatesToType to 2004/03 Relationship. * * @param internal the 2005/08 RelatesToType * @return an equivalent 2004/03 Relationship */ public static org.apache.cxf.ws.addressing.v200403.Relationship convertTo200403(RelatesToType internal) { org.apache.cxf.ws.addressing.v200403.Relationship exposed = null; if (internal != null) { exposed = Names200403.WSA_OBJECT_FACTORY.createRelationship(); exposed.setValue(internal.getValue()); String internalRelationshipType = internal.getRelationshipType(); if (internalRelationshipType != null) { QName exposedRelationshipType = null; if (!Names.WSA_RELATIONSHIP_REPLY.equals(internalRelationshipType)) { exposedRelationshipType = new QName(internalRelationshipType); } exposed.setRelationshipType(exposedRelationshipType); } putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); } return exposed; }
/** * Convert from 2005/08 RelatesToType to 2004/08 Relationship. * * @param internal the 2005/08 RelatesToType * @return an equivalent 2004/08 Relationship */ public static Relationship convert(RelatesToType internal) { Relationship exposed = null; if (internal != null) { exposed = Names200408.WSA_OBJECT_FACTORY.createRelationship(); exposed.setValue(internal.getValue()); String internalRelationshipType = internal.getRelationshipType(); if (internalRelationshipType != null) { QName exposedRelationshipType = null; if (!Names.WSA_RELATIONSHIP_REPLY.equals(internalRelationshipType)) { exposedRelationshipType = new QName(internalRelationshipType); } exposed.setRelationshipType(exposedRelationshipType); } putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); } return exposed; }
/** * Convert from 2005/08 RelatesToType to 2004/03 Relationship. * * @param internal the 2005/08 RelatesToType * @return an equivalent 2004/03 Relationship */ public static org.apache.cxf.ws.addressing.v200403.Relationship convertTo200403(RelatesToType internal) { org.apache.cxf.ws.addressing.v200403.Relationship exposed = null; if (internal != null) { exposed = Names200403.WSA_OBJECT_FACTORY.createRelationship(); exposed.setValue(internal.getValue()); String internalRelationshipType = internal.getRelationshipType(); if (internalRelationshipType != null) { QName exposedRelationshipType = null; if (!Names.WSA_RELATIONSHIP_REPLY.equals(internalRelationshipType)) { exposedRelationshipType = new QName(internalRelationshipType); } exposed.setRelationshipType(exposedRelationshipType); } putAll(exposed.getOtherAttributes(), internal.getOtherAttributes()); } return exposed; }
if (maps != null && maps.getRelatesTo() != null && !Names.WSA_UNSPECIFIED_RELATIONSHIP.equals(maps.getRelatesTo().getValue()) && isRelationshipReply(maps.getRelatesTo())) { Exchange correlatedExchange = uncorrelatedExchanges.remove(maps.getRelatesTo().getValue()); if (correlatedExchange != null) { synchronized (correlatedExchange) { ? ContextUtils.retrieveMAPs(outmsg, false, true, false) : null; if (outp == null || !outp.getMessageID().getValue().equals(maps.getRelatesTo().getValue())) { LOG.log(Level.WARNING, "CORRELATION_FAILURE_MSG"); message.getInterceptorChain().abort();
if (maps != null && maps.getRelatesTo() != null && !Names.WSA_UNSPECIFIED_RELATIONSHIP.equals(maps.getRelatesTo().getValue()) && isRelationshipReply(maps.getRelatesTo())) { Exchange correlatedExchange = uncorrelatedExchanges.remove(maps.getRelatesTo().getValue()); if (correlatedExchange != null) { synchronized (correlatedExchange) { ? ContextUtils.retrieveMAPs(outmsg, false, true, false) : null; if (outp == null || !outp.getMessageID().getValue().equals(maps.getRelatesTo().getValue())) { LOG.log(Level.WARNING, "CORRELATION_FAILURE_MSG"); message.getInterceptorChain().abort();
AddressingProperties apropos = (AddressingProperties) messageContext.get(JAXWSAConstants.ADDRESSING_PROPERTIES_INBOUND); String messageId = ((apropos != null) && (apropos.getRelatesTo() != null)) ? apropos.getRelatesTo().getValue() : null;
&& isRelationshipReply(maps.getRelatesTo())) { Exchange correlatedExchange = mapCodec.getUncorrelatedExchanges().get(maps.getRelatesTo().getValue()); message.setContent(InputStream.class, bos.getInputStream()); bos.close();