StatusType status = new StatusType(); status.setCode(code); status.setReason(reason); context.setStatus(status);
if (status.getCode() == null || status.getCode() == "") throw new ProcessingException(ErrorCodes.NULL_VALUE + "Validation status code is missing"); StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.CODE, WSTrustConstants.BASE_NAMESPACE); StaxUtil.writeCharacters(this.writer, response.getStatus().getCode()); StaxUtil.writeEndElement(this.writer); if (status.getReason() != null) StaxUtil.writeCharacters(this.writer, response.getStatus().getReason()); StaxUtil.writeEndElement(this.writer);
if (status != null) String code = status.getCode(); return WSTrustConstants.STATUS_CODE_VALID.equals(code);
if (status.getCode() == null || status.getCode() == "") throw new ProcessingException(ErrorCodes.NULL_VALUE + "Validation status code is missing"); StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.CODE, WSTrustConstants.BASE_NAMESPACE); StaxUtil.writeCharacters(this.writer, response.getStatus().getCode()); StaxUtil.writeEndElement(this.writer); if (status.getReason() != null) StaxUtil.writeCharacters(this.writer, response.getStatus().getReason()); StaxUtil.writeEndElement(this.writer);
if (status != null) String code = status.getCode(); return WSTrustConstants.STATUS_CODE_VALID.equals(code);
StatusType status = new StatusType(); status.setCode(code); status.setReason(reason); wstContext.setStatus(status);
if (status.getCode() == null || status.getCode() == "") throw logger.wsTrustValidationStatusCodeMissing(); StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.CODE, WSTrustConstants.BASE_NAMESPACE); StaxUtil.writeCharacters(this.writer, response.getStatus().getCode()); StaxUtil.writeEndElement(this.writer); if (status.getReason() != null) { StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REASON, WSTrustConstants.BASE_NAMESPACE); StaxUtil.writeCharacters(this.writer, response.getStatus().getReason()); StaxUtil.writeEndElement(this.writer);
String code = status.getCode(); return WSTrustConstants.STATUS_CODE_VALID.equals(code);
StatusType status = new StatusType(); status.setCode(code); status.setReason(reason); wstContext.setStatus(status);
if (StringUtil.isNullOrEmpty(status.getCode())) { throw logger.wsTrustValidationStatusCodeMissing(); StaxUtil.writeCharacters(this.writer, response.getStatus().getCode()); StaxUtil.writeEndElement(this.writer); if (status.getReason() != null) { StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REASON, WSTrustConstants.BASE_NAMESPACE); StaxUtil.writeCharacters(this.writer, response.getStatus().getReason()); StaxUtil.writeEndElement(this.writer);
String code = status.getCode(); return WSTrustConstants.STATUS_CODE_VALID.equals(code);
StatusType status = new StatusType(); status.setCode(code); status.setReason(reason); context.setStatus(status);
if (StringUtil.isNullOrEmpty(status.getCode())) { throw logger.wsTrustValidationStatusCodeMissing(); StaxUtil.writeCharacters(this.writer, response.getStatus().getCode()); StaxUtil.writeEndElement(this.writer); if (status.getReason() != null) { StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REASON, WSTrustConstants.BASE_NAMESPACE); StaxUtil.writeCharacters(this.writer, response.getStatus().getReason()); StaxUtil.writeEndElement(this.writer);
String code = status.getCode(); return WSTrustConstants.STATUS_CODE_VALID.equals(code);
StatusType status = new StatusType(); status.setCode(code); status.setReason(reason); wstContext.setStatus(status);
private StatusType parseStatusType(XMLEventReader xmlEventReader) throws ParsingException StatusType status = new StatusType(); StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, WSTrustConstants.STATUS); status.setCode(StaxParserUtil.getElementText(xmlEventReader)); status.setReason(StaxParserUtil.getElementText(xmlEventReader));
private StatusType parseStatusType(XMLEventReader xmlEventReader) throws ParsingException StatusType status = new StatusType(); StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, WSTrustConstants.STATUS); status.setCode(StaxParserUtil.getElementText(xmlEventReader)); status.setReason(StaxParserUtil.getElementText(xmlEventReader));
private StatusType parseStatusType(XMLEventReader xmlEventReader) throws ParsingException { StatusType status = new StatusType(); StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, WSTrustConstants.STATUS); status.setCode(StaxParserUtil.getElementText(xmlEventReader)); } else if (tag.equals(WSTrustConstants.REASON)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); status.setReason(StaxParserUtil.getElementText(xmlEventReader));
private StatusType parseStatusType(XMLEventReader xmlEventReader) throws ParsingException { StatusType status = new StatusType(); StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, WSTrustConstants.STATUS); status.setCode(StaxParserUtil.getElementText(xmlEventReader)); } else if (tag.equals(WSTrustConstants.REASON)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); status.setReason(StaxParserUtil.getElementText(xmlEventReader));
StatusType status = new StatusType(); status.setCode(code); status.setReason(reason); wstContext.setStatus(status);