public String getAnonymousURI() { return implementation.getAnonymousURI(); }
public String getNoneURI() { return implementation.getNoneURI(); }
public MAPConstants newConstants() { AddressingConstants implementation = new AddressingConstants(); return new CXFMAPConstants(implementation); }
mf.verifyHeader(RMUtils.getAddressingConstants().getMessageIDQName(), true, i); mf.verifyHeader(RMUtils.getAddressingConstants().getMessageIDQName(), false, i);
mf.verifyNoHeader(RMUtils.getAddressingConstants().getMessageIDQName(), true, i); mf.verifyNoHeader(RMUtils.getAddressingConstants().getMessageIDQName(), false, i);
boolean canPiggybackAckOnPartialResponse() { // TODO: should also check if we allow breaking the WI Profile rule by which no headers // can be included in a HTTP response return getAcksTo().getAddress().getValue().equals(RMUtils.getAddressingConstants().getAnonymousURI()); }
public void createSequenceResponse(CreateSequenceResponseType createResponse, ProtocolVariation protocol) { LOG.fine("Creating sequence response"); SourceSequence seq = new SourceSequence(createResponse.getIdentifier(), protocol); seq.setExpires(createResponse.getExpires()); Source source = reliableEndpoint.getSource(); source.addSequence(seq); // the incoming sequence ID is either used as the requestor sequence // (signalled by null) or associated with a corresponding sequence // identifier source.setCurrent(clearUnattachedIdentifier(), seq); // if a sequence was offered and accepted, then we can add this to // to the local destination sequence list, otherwise we have to wait for // and incoming CreateSequence request Identifier offeredId = reliableEndpoint.getProxy().getOfferedIdentifier(); if (null != offeredId) { AcceptType accept = createResponse.getAccept(); if (accept != null) { Destination dest = reliableEndpoint.getDestination(); String address = accept.getAcksTo().getAddress().getValue(); if (!RMUtils.getAddressingConstants().getNoneURI().equals(address)) { DestinationSequence ds = new DestinationSequence(offeredId, accept.getAcksTo(), dest, protocol); dest.addSequence(ds); } } } }
if (RMUtils.getAddressingConstants().getAnonymousURI().equals(address) && !AbstractSequence.identifierEquals(seq.getIdentifier(), inSeqId)) { if (LOG.isLoggable(Level.FINE)) {
to = RMUtils.createReference(maps.getTo().getValue()); acksTo = maps.getReplyTo(); if (RMUtils.getAddressingConstants().getNoneURI().equals(acksTo.getAddress().getValue())) { Endpoint ei = message.getExchange().getEndpoint(); org.apache.cxf.transport.Destination dest
void acknowledge(DestinationSequence ds) throws RMException { final ProtocolVariation protocol = ds.getProtocol(); String address = ds.getAcksTo().getAddress().getValue(); if (RMUtils.getAddressingConstants().getAnonymousURI().equals(address)) { LOG.log(Level.WARNING, "STANDALONE_ANON_ACKS_NOT_SUPPORTED"); return; } RMConstants constants = protocol.getConstants(); OperationInfo oi = reliableEndpoint.getEndpoint(protocol).getEndpointInfo() .getService().getInterface().getOperation(constants.getSequenceAckOperationName()); invoke(oi, protocol, new Object[] {ds}, this.sequenceContext); }
void ackRequested(SourceSequence s) throws RMException { final ProtocolVariation protocol = s.getProtocol(); EndpointReferenceType target = s.getTarget(); AttributedURIType uri = null; if (null != target) { uri = target.getAddress(); } String addr = null; if (null != uri) { addr = uri.getValue(); } if (addr == null) { LOG.log(Level.WARNING, "STANDALONE_ACK_REQUESTED_NO_TARGET_MSG"); return; } if (RMUtils.getAddressingConstants().getAnonymousURI().equals(addr)) { LOG.log(Level.WARNING, "STANDALONE_ACK_REQUESTED_ANON_TARGET_MSG"); return; } RMConstants constants = protocol.getConstants(); OperationInfo oi = reliableEndpoint.getEndpoint(protocol).getEndpointInfo().getService() .getInterface().getOperation(constants.getAckRequestedOperationName()); invoke(oi, protocol, new Object[] {}); }
if (RMUtils.getAddressingConstants().getAnonymousURI().equals(addr)) { LOG.log(Level.WARNING, "STANDALONE_CLOSE_SEQUENCE_ANON_TARGET_MSG"); return;
maps.exposeAs(cfg.getAddressingNamespace()); if (to != null && RMUtils.getAddressingConstants().getAnonymousURI().equals(to.getValue())) { LOG.log(Level.INFO, "Cannot resend to anonymous target. Not scheduling a resend."); return;
/** * Used by the RM source to cache received acknowledgements for this * sequence. * * @param acknowledgement an acknowledgement for this sequence */ public void setAcknowledged(SequenceAcknowledgement a) throws RMException { acknowledgement = a; source.getManager().getRetransmissionQueue().purgeAcknowledged(this); if (allAcknowledged()) { if (null == target || RMUtils.getAddressingConstants().getAnonymousURI().equals( target.getAddress().getValue())) { LOG.log(Level.WARNING, "STANDALONE_ANON_TERMINATE_SEQUENCE_MSG"); // keep the sequence and let RMOutInterceptor remove it after building the TS message // if we remove the sequence here, RMOutInterceptor should check for a null sequence } else { RMEndpoint rme = source.getReliableEndpoint(); Proxy proxy = rme.getProxy(); // REVIST for rm 1.1, provide an option to how the close and terminate messages are sent if (ProtocolVariation.RM11WSA200508 == getProtocol()) { proxy.lastMessage(this); } proxy.terminate(this); source.removeSequence(this); } } }
return; if (RMUtils.getAddressingConstants().getAnonymousURI().equals(to.getValue())) { LOG.log(Level.FINE, "Cannot resend to anonymous target"); return;