use of org.apache.cxf.ws.rm.v200502.Identifier in project cxf by apache.
the class EncoderDecoder10AImpl method buildHeaderFaultObject.
@Override
protected Object buildHeaderFaultObject(SequenceFault sf) {
org.apache.cxf.ws.rm.v200502wsa15.SequenceFaultType flt = new org.apache.cxf.ws.rm.v200502wsa15.SequenceFaultType();
flt.setFaultCode(sf.getFaultCode());
Object detail = sf.getDetail();
if (detail instanceof Element) {
flt.getAny().add(detail);
} else if (detail instanceof Identifier) {
flt.getAny().add(VersionTransformer.convert200502wsa15((Identifier) detail));
} else if (detail instanceof SequenceAcknowledgement) {
flt.getAny().add(VersionTransformer.convert200502wsa15((SequenceAcknowledgement) detail));
}
Element data = sf.getExtraDetail();
if (data != null) {
flt.getAny().add(data);
}
return flt;
}
use of org.apache.cxf.ws.rm.v200502.Identifier in project cxf by apache.
the class EncoderDecoder10Impl method buildHeaderFaultObject.
@Override
protected Object buildHeaderFaultObject(SequenceFault sf) {
org.apache.cxf.ws.rm.v200502.SequenceFaultType flt = new org.apache.cxf.ws.rm.v200502.SequenceFaultType();
flt.setFaultCode(sf.getFaultCode());
Object detail = sf.getDetail();
if (detail instanceof Element) {
flt.getAny().add(detail);
} else if (detail instanceof Identifier) {
flt.getAny().add(VersionTransformer.convert200502((Identifier) detail));
} else if (detail instanceof SequenceAcknowledgement) {
flt.getAny().add(VersionTransformer.convert200502((SequenceAcknowledgement) detail));
}
Element data = sf.getExtraDetail();
if (data != null) {
flt.getAny().add(data);
}
return flt;
}
use of org.apache.cxf.ws.rm.v200502.Identifier in project cxf by apache.
the class ManagedRMEndpoint method getSourceSeq.
private SourceSequence getSourceSeq(String sid) {
Source source = endpoint.getSource();
Identifier identifier = RMUtils.getWSRMFactory().createIdentifier();
identifier.setValue(sid);
return source.getSequence(identifier);
}
use of org.apache.cxf.ws.rm.v200502.Identifier in project cxf by apache.
the class ManagedRMEndpoint method getDestinationSeq.
private DestinationSequence getDestinationSeq(String sid) {
Destination destination = endpoint.getDestination();
Identifier identifier = RMUtils.getWSRMFactory().createIdentifier();
identifier.setValue(sid);
return destination.getSequence(identifier);
}
use of org.apache.cxf.ws.rm.v200502.Identifier in project cxf by apache.
the class RMInInterceptor method processAcknowledgments.
void processAcknowledgments(RMEndpoint rme, RMProperties rmps, ProtocolVariation protocol) throws SequenceFault, RMException {
Collection<SequenceAcknowledgement> acks = rmps.getAcks();
Source source = rme.getSource();
if (null != acks) {
for (SequenceAcknowledgement ack : acks) {
Identifier id = ack.getIdentifier();
SourceSequence ss = source.getSequence(id);
if (null != ss) {
ss.setAcknowledged(ack);
} else {
RMConstants consts = protocol.getConstants();
SequenceFaultFactory sff = new SequenceFaultFactory(consts);
throw sff.createUnknownSequenceFault(id);
}
}
}
}
Aggregations